syslog-ng source
systemd-syslog-source.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002-2014 Balabit
3  * Copyright (c) 1998-2014 Balázs Scheidler
4  * Copyright (c) 2013-2014 Tibor Benke
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published
8  * by the Free Software Foundation, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * As an additional exemption you are allowed to compile & link against the
20  * OpenSSL libraries as published by the OpenSSL project. See the file
21  * COPYING for details.
22  *
23  */
24 
25 
26 #ifndef SYSTEMD_SYSLOG_SOURCE_H_INCLUDED
27 #define SYSTEMD_SYSLOG_SOURCE_H_INCLUDED 1
28 
29 #include "afsocket-source.h"
30 #include "transport-mapper-unix.h"
31 
32 
33 typedef struct _SystemDSyslogSourceDriver
34 {
35  AFSocketSourceDriver super;
36  gboolean from_unix_source;
38 
39 SystemDSyslogSourceDriver *systemd_syslog_sd_new(GlobalConfig *cfg, gboolean fallback);
40 AFSocketSourceDriver *create_and_set_unix_dgram_or_systemd_syslog_source(gchar *filename, GlobalConfig *cfg);
41 AFSocketSourceDriver *create_and_set_unix_stream_or_systemd_syslog_source(gchar *filename, GlobalConfig *cfg);
42 
43 #endif
Definition: systemd-syslog-source.h:34
AFSocketSourceDriver super
Definition: systemd-syslog-source.h:35
gboolean from_unix_source
Definition: systemd-syslog-source.h:36
AFSocketSourceDriver * create_and_set_unix_dgram_or_systemd_syslog_source(gchar *filename, GlobalConfig *cfg)
Definition: systemd-syslog-source.c:199
SystemDSyslogSourceDriver * systemd_syslog_sd_new(GlobalConfig *cfg, gboolean fallback)
Definition: systemd-syslog-source.c:128
AFSocketSourceDriver * create_and_set_unix_stream_or_systemd_syslog_source(gchar *filename, GlobalConfig *cfg)
Definition: systemd-syslog-source.c:207
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34