syslog-ng source
pdb-ruleset.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002-2013, 2015 Balabit
3  * Copyright (c) 1998-2013, 2015 Balázs Scheidler
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 as published
7  * by the Free Software Foundation, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 #ifndef CORRELATION_PDB_RULESET_H_INCLUDED
24 #define CORRELATION_PDB_RULESET_H_INCLUDED
25 
26 #include "syslog-ng.h"
27 #include "radix.h"
28 #include "pdb-lookup-params.h"
29 #include "pdb-rule.h"
30 
31 /* rules loaded from a pdb file */
32 typedef struct _PDBRuleSet
33 {
34  RNode *programs;
35  gchar *version;
36  gchar *pub_date;
37  gchar *prefix;
38  gboolean is_empty;
39 } PDBRuleSet;
40 
41 PDBRule *pdb_ruleset_lookup(PDBRuleSet *rule_set, PDBLookupParams *lookup, GArray *dbg_list);
42 PDBRuleSet *pdb_rule_set_new(const gchar *prefix);
43 void pdb_rule_set_free(PDBRuleSet *self);
44 
45 void pdb_rule_set_global_init(void);
46 
47 
48 #endif
PDBRule * pdb_ruleset_lookup(PDBRuleSet *rule_set, PDBLookupParams *lookup, GArray *dbg_list)
Definition: pdb-ruleset.c:86
void pdb_rule_set_global_init(void)
Definition: pdb-ruleset.c:197
void pdb_rule_set_free(PDBRuleSet *self)
Definition: pdb-ruleset.c:186
PDBRuleSet * pdb_rule_set_new(const gchar *prefix)
Definition: pdb-ruleset.c:177
Definition: pdb-ruleset.h:33
gchar * version
Definition: pdb-ruleset.h:35
RNode * programs
Definition: pdb-ruleset.h:34
gchar * pub_date
Definition: pdb-ruleset.h:36
gboolean is_empty
Definition: pdb-ruleset.h:38
gchar * prefix
Definition: pdb-ruleset.h:37
lookup_method lookup
Definition: tfgetent.c:138