Blame


1 fb1a36c0 2022-01-09 op /*
2 fb1a36c0 2022-01-09 op * Copyright (c) 2004 Esben Norby <norby@openbsd.org>
3 fb1a36c0 2022-01-09 op * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
4 fb1a36c0 2022-01-09 op *
5 fb1a36c0 2022-01-09 op * Permission to use, copy, modify, and distribute this software for any
6 fb1a36c0 2022-01-09 op * purpose with or without fee is hereby granted, provided that the above
7 fb1a36c0 2022-01-09 op * copyright notice and this permission notice appear in all copies.
8 fb1a36c0 2022-01-09 op *
9 fb1a36c0 2022-01-09 op * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 fb1a36c0 2022-01-09 op * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 fb1a36c0 2022-01-09 op * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 fb1a36c0 2022-01-09 op * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 fb1a36c0 2022-01-09 op * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 fb1a36c0 2022-01-09 op * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 fb1a36c0 2022-01-09 op * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 fb1a36c0 2022-01-09 op */
17 fb1a36c0 2022-01-09 op
18 fb1a36c0 2022-01-09 op #ifndef CTL_PARSER_H
19 fb1a36c0 2022-01-09 op #define CTL_PARSER_H
20 fb1a36c0 2022-01-09 op
21 fb1a36c0 2022-01-09 op enum actions {
22 fb1a36c0 2022-01-09 op NONE,
23 fb1a36c0 2022-01-09 op LOG_VERBOSE,
24 fb1a36c0 2022-01-09 op LOG_BRIEF,
25 fb1a36c0 2022-01-09 op RELOAD,
26 4fa9a307 2022-01-29 op DEBUG,
27 fb1a36c0 2022-01-09 op };
28 fb1a36c0 2022-01-09 op
29 fb1a36c0 2022-01-09 op struct parse_result {
30 fb1a36c0 2022-01-09 op enum actions action;
31 fb1a36c0 2022-01-09 op };
32 fb1a36c0 2022-01-09 op
33 fb1a36c0 2022-01-09 op struct parse_result *parse(int, char **);
34 fb1a36c0 2022-01-09 op
35 fb1a36c0 2022-01-09 op #endif