syslog-ng source
csvparser.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002-2015 Balabit
3  * Copyright (c) 1998-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 
24 #ifndef CSVPARSER_H_INCLUDED
25 #define CSVPARSER_H_INCLUDED
26 
27 #include "parser/parser-expr.h"
29 
30 typedef struct _CSVParserColumn
31 {
32  gchar *name;
35 
38 
40 void csv_parser_set_columns(LogParser *s, GList *columns);
41 gboolean csv_parser_set_flags(LogParser *s, guint32 flags);
42 void csv_parser_set_drop_invalid(LogParser *s, gboolean drop_invalid);
43 void csv_parser_set_prefix(LogParser *s, const gchar *prefix);
44 void csv_parser_set_list_name(LogParser *s, const gchar *list_name);
45 LogParser *csv_parser_new(GlobalConfig *cfg);
46 void csv_parser_set_on_error(LogParser *s, gint on_error);
47 
48 guint32 csv_parser_lookup_flag(const gchar *flag);
49 gint csv_parser_lookup_dialect(const gchar *flag);
50 
51 
52 #endif
gint csv_parser_lookup_dialect(const gchar *flag)
Definition: csvparser.c:388
gboolean csv_parser_set_flags(LogParser *s, guint32 flags)
Definition: csvparser.c:92
void csv_parser_set_columns(LogParser *s, GList *columns)
Definition: csvparser.c:84
LogParser * csv_parser_new(GlobalConfig *cfg)
Definition: csvparser.c:352
void csv_parser_column_free(CSVParserColumn *s)
Definition: csvparser.c:49
void csv_parser_set_drop_invalid(LogParser *s, gboolean drop_invalid)
Definition: csvparser.c:139
CSVScannerOptions * csv_parser_get_scanner_options(LogParser *s)
Definition: csvparser.c:76
guint32 csv_parser_lookup_flag(const gchar *flag)
Definition: csvparser.c:370
void csv_parser_set_on_error(LogParser *s, gint on_error)
Definition: csvparser.c:402
void csv_parser_set_list_name(LogParser *s, const gchar *list_name)
void csv_parser_set_prefix(LogParser *s, const gchar *prefix)
Definition: csvparser.c:121
CSVParserColumn * csv_parser_column_new(const gchar *name, LogMessageValueType type)
Definition: csvparser.c:33
const gchar * name
Definition: debugger.c:265
NVType LogMessageValueType
Definition: logmsg.h:195
Definition: csvparser.h:31
LogMessageValueType type
Definition: csvparser.h:33
gchar * name
Definition: csvparser.h:32
Definition: csv-scanner.h:43
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34