syslog-ng source
syslog-parser.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012 Balabit
3  * Copyright (c) 2012 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 SYSLOG_PARSER_H_INCLUDED
24 #define SYSLOG_PARSER_H_INCLUDED
25 
26 #include "parser/parser-expr.h"
27 #include "msg-format.h"
28 
29 typedef struct _SyslogParser
30 {
31  LogParser super;
33  gboolean drop_invalid;
34 } SyslogParser;
35 
36 void syslog_parser_set_drop_invalid(LogParser *s, gboolean drop_invalid);
37 LogParser *syslog_parser_new(GlobalConfig *cfg);
38 
39 #endif
Definition: msg-format.h:69
Definition: syslog-parser.h:30
MsgFormatOptions parse_options
Definition: syslog-parser.h:32
LogParser super
Definition: syslog-parser.h:31
gboolean drop_invalid
Definition: syslog-parser.h:33
void syslog_parser_set_drop_invalid(LogParser *s, gboolean drop_invalid)
Definition: syslog-parser.c:27
LogParser * syslog_parser_new(GlobalConfig *cfg)
Definition: syslog-parser.c:92
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34