Attempt to create .deps directory every time we build objects.
[doas.git] / parse.h
blob13b2733cf09a25fdf249234dbc1e2d3fc1c3d574
1 /*
2 * Copyright (c) 2021-2022 Sergey Sushilin <sergeysushilin@protonmail.com>
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 #ifndef _PARSE_H
18 #define _PARSE_H 1
20 #include <stddef.h>
22 #include "attributes.h"
23 #include "rule.h"
25 extern const struct rule *get_rules (void);
26 extern size_t get_n_rules (void);
27 extern void free_rules(void);
29 extern void check_permissions(char const *filename)
30 __nonnull((1));
31 extern u_int parse_config(char const *filename)
32 __nonnull((1));
34 #endif