syslog-ng source
date-parser.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Balabit
3  * Copyright (c) 2015 Vincent Bernat <Vincent.Bernat@exoscale.ch>
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 DATE_PARSER_H_INCLUDED
25 #define DATE_PARSER_H_INCLUDED
26 
27 #include "parser/parser-expr.h"
28 
29 LogParser *date_parser_new(GlobalConfig *cfg);
30 
31 void date_parser_set_offset(LogParser *s, goffset offset);
32 void date_parser_set_formats(LogParser *s, GList *formats);
33 void date_parser_set_timezone(LogParser *s, gchar *tz);
34 void date_parser_set_time_stamp(LogParser *s, LogMessageTimeStamp timestamp);
35 void date_parser_set_value(LogParser *s, const gchar *value_name);
36 gboolean date_parser_process_flag(LogParser *s, gchar *flag);
37 
38 #endif
gboolean date_parser_process_flag(LogParser *s, gchar *flag)
Definition: date-parser.c:247
void date_parser_set_time_stamp(LogParser *s, LogMessageTimeStamp timestamp)
Definition: date-parser.c:68
LogParser * date_parser_new(GlobalConfig *cfg)
Definition: date-parser.c:222
void date_parser_set_value(LogParser *s, const gchar *value_name)
Definition: date-parser.c:76
void date_parser_set_formats(LogParser *s, GList *formats)
Definition: date-parser.c:50
void date_parser_set_timezone(LogParser *s, gchar *tz)
Definition: date-parser.c:59
void date_parser_set_offset(LogParser *s, goffset offset)
LogMessageTimeStamp
Definition: logmsg.h:68
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34