syslog-ng source
dbparser.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002-2011 Balabit
3  * Copyright (c) 1998-2011 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 
24 #ifndef DBPARSER_H_INCLUDED
25 #define DBPARSER_H_INCLUDED
26 
27 #include "stateful-parser.h"
28 #include "patterndb.h"
29 
30 #define PATH_PATTERNDB_FILE SYSLOG_NG_PATH_LOCALSTATEDIR "/patterndb.xml"
31 
32 typedef struct _LogDBParser LogDBParser;
33 
34 void log_db_parser_set_drop_unmatched(LogDBParser *self, gboolean setting);
35 void log_db_parser_set_program_template_ref(LogParser *s, LogTemplate *program_template);
36 void log_db_parser_set_db_file(LogDBParser *self, const gchar *db_file);
37 void log_db_parser_set_prefix(LogDBParser *self, const gchar *prefix);
38 LogParser *log_db_parser_new(GlobalConfig *cfg);
39 
41 
42 #endif
void log_pattern_database_init(void)
void log_db_parser_set_program_template_ref(LogParser *s, LogTemplate *program_template)
Definition: dbparser.c:265
void log_db_parser_set_drop_unmatched(LogDBParser *self, gboolean setting)
Definition: dbparser.c:241
void log_db_parser_set_prefix(LogDBParser *self, const gchar *prefix)
Definition: dbparser.c:234
void log_db_parser_set_db_file(LogDBParser *self, const gchar *db_file)
Definition: dbparser.c:227
LogParser * log_db_parser_new(GlobalConfig *cfg)
Definition: dbparser.c:289
Definition: dbparser.c:37
LogTemplate * program_template
Definition: dbparser.c:49
gchar * prefix
Definition: dbparser.c:43
gchar * db_file
Definition: dbparser.c:42
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34