1*c071f090Sflorian /* $OpenBSD: parser.h,v 1.9 2019/12/18 09:18:28 florian Exp $ */ 25c077b0fSflorian 35c077b0fSflorian /* 45c077b0fSflorian * Copyright (c) 2004 Esben Norby <norby@openbsd.org> 55c077b0fSflorian * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> 65c077b0fSflorian * 75c077b0fSflorian * Permission to use, copy, modify, and distribute this software for any 85c077b0fSflorian * purpose with or without fee is hereby granted, provided that the above 95c077b0fSflorian * copyright notice and this permission notice appear in all copies. 105c077b0fSflorian * 115c077b0fSflorian * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 125c077b0fSflorian * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 135c077b0fSflorian * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 145c077b0fSflorian * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 155c077b0fSflorian * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 165c077b0fSflorian * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 175c077b0fSflorian * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 185c077b0fSflorian */ 195c077b0fSflorian 205c077b0fSflorian enum actions { 215c077b0fSflorian NONE, 225c077b0fSflorian LOG_DEBUG, 235c077b0fSflorian LOG_VERBOSE, 245c077b0fSflorian LOG_BRIEF, 255c077b0fSflorian RELOAD, 26b2501eadSflorian PORTAL, 2715fe126bSflorian STATUS, 28*c071f090Sflorian AUTOCONF, 29*c071f090Sflorian MEM 305c077b0fSflorian }; 315c077b0fSflorian 325c077b0fSflorian struct parse_result { 335c077b0fSflorian enum actions action; 345c077b0fSflorian }; 355c077b0fSflorian 365c077b0fSflorian struct parse_result *parse(int, char *[]); 37