Debian Codegraph @

include/seltree.h

raw symbols SCIP
1 /*
2 * AIDE (Advanced Intrusion Detection Environment)
3 *
4 * Copyright (C) 1999-2002, 2010, 2020-2024 Rami Lehti, Pablo Virolainen,
5 * Hannes von Haugwitz
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 */
21
22 #ifndef _SELTREE_H_INCLUDED
23 #define _SELTREE_H_INCLUDED
24 #include "log.h"
25 #include "file.h"
26 #include "rx_rule.h"
27
28 typedef struct seltree seltree;
29
30 seltree* init_tree(void);
31
32 seltree* get_seltree_node(seltree* ,char*);
33 seltree* get_or_create_seltree_node(seltree*, char *);
34
35 rx_rule * add_rx_to_tree(char *, rx_restriction_t, AIDE_RULE_TYPE, seltree *, int, char *, char *, char **);
36
37 match_t check_seltree(seltree *, file_t, bool, const char *);
38
39 void log_tree(LOG_LEVEL, seltree *, int);
40 bool is_tree_empty(seltree *);
41 #endif /* _SELTREE_H_INCLUDED*/