syslog-ng source
pdb-example.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_EXAMPLE_H_INCLUDED
24 #define CORRELATION_PDB_EXAMPLE_H_INCLUDED
25 
26 #include "syslog-ng.h"
27 #include "pdb-rule.h"
28 
29 /* this class encapsulates an example message in the pattern database
30  * used for testing rules and patterns. It contains the message with the
31  * program field and the expected rule_id with the expected name/value
32  * pairs. */
33 typedef struct _PDBExample
34 {
35  PDBRule *rule;
36  gchar *message;
37  gchar *program;
38  GPtrArray *values;
39 } PDBExample;
40 
42 
43 
44 #endif
void pdb_example_free(PDBExample *s)
Definition: pdb-example.c:26
Definition: pdb-example.h:34
gchar * message
Definition: pdb-example.h:36
gchar * program
Definition: pdb-example.h:37
PDBRule * rule
Definition: pdb-example.h:35
GPtrArray * values
Definition: pdb-example.h:38