syslog-ng source
pdb-program.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_PROGRAM_H_INCLUDED
24 #define CORRELATION_PDB_PROGRAM_H_INCLUDED
25 
26 #include "syslog-ng.h"
27 #include "radix.h"
28 
29 /*
30  * This class encapsulates a set of program related rules in the
31  * pattern database. Its instances are stored as "value" in the
32  * program name RADIX tree. It basically contains another RADIX for
33  * the per-program patterns.
34  */
35 typedef struct _PDBProgram
36 {
37  guint ref_cnt;
38  gchar *pdb_location;
39  RNode *rules;
40 } PDBProgram;
41 
45 
46 #endif
void pdb_program_unref(PDBProgram *s)
Definition: pdb-program.c:50
PDBProgram * pdb_program_ref(PDBProgram *self)
Definition: pdb-program.c:43
PDBProgram * pdb_program_new(void)
Definition: pdb-program.c:33
Definition: pdb-program.h:36
RNode * rules
Definition: pdb-program.h:39
gchar * pdb_location
Definition: pdb-program.h:38
guint ref_cnt
Definition: pdb-program.h:37