syslog-ng source
afunix-source.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002-2012 Balabit
3  * Copyright (c) 1998-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 
24 #ifndef AFUNIX_SOURCE_H_INCLUDED
25 #define AFUNIX_SOURCE_H_INCLUDED
26 
27 #include "afsocket-source.h"
28 #include "transport-mapper-unix.h"
29 #include "file-perms.h"
30 
31 typedef struct _AFUnixSourceDriver
32 {
33  AFSocketSourceDriver super;
34  gchar *filename;
39 
40 AFUnixSourceDriver *afunix_sd_new_stream(gchar *filename, GlobalConfig *cfg);
41 AFUnixSourceDriver *afunix_sd_new_dgram(gchar *filename, GlobalConfig *cfg);
43 void afunix_sd_set_create_dirs(AFUnixSourceDriver *self, gboolean create_dirs);
44 
45 #endif
AFUnixSourceDriver * afunix_sd_new_stream(gchar *filename, GlobalConfig *cfg)
Definition: afunix-source.c:183
void afunix_sd_set_create_dirs(AFUnixSourceDriver *self, gboolean create_dirs)
Definition: afunix-source.c:171
void afunix_sd_set_pass_unix_credentials(AFUnixSourceDriver *self, gboolean pass)
Definition: afunix-source.c:165
AFUnixSourceDriver * afunix_sd_new_dgram(gchar *filename, GlobalConfig *cfg)
Definition: afunix-source.c:177
Definition: afunix-source.h:32
gchar * filename
Definition: afunix-source.h:34
gint create_dirs
Definition: afunix-source.h:37
gint pass_unix_credentials
Definition: afunix-source.h:36
FilePermOptions file_perm_options
Definition: afunix-source.h:35
AFSocketSourceDriver super
Definition: afunix-source.h:33
Definition: file-perms.h:31
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34