syslog-ng source
logline_generator.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Balabit
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library 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 GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; 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 LOGLINE_GENERATOR_H_INCLUDED
25 #define LOGLINE_GENERATOR_H_INCLUDED
26 
27 #include "loggen_plugin.h"
28 
29 int generate_log_line(ThreadData *thread_context,
30  char *buffer, int buffer_length,
31  int syslog_proto,
32  int thread_id,
33  unsigned long rate,
34  unsigned long seq);
35 int prepare_log_line_template(int syslog_proto, int framing, int message_length, char *sdata_value);
36 
37 #endif
int prepare_log_line_template(int syslog_proto, int framing, int message_length, char *sdata_value)
Definition: logline_generator.c:43
int generate_log_line(ThreadData *thread_context, char *buffer, int buffer_length, int syslog_proto, int thread_id, unsigned long rate, unsigned long seq)
Definition: logline_generator.c:101
Definition: loggen_plugin.h:57
GString * buffer
Definition: test_smart_multi_line.c:69