syslog-ng source
affile-source.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002-2013 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 AFFILE_SOURCE_H_INCLUDED
25 #define AFFILE_SOURCE_H_INCLUDED
26 
27 #include "driver.h"
28 #include "logreader.h"
29 #include "file-opener.h"
30 #include "file-reader.h"
31 
32 typedef struct _AFFileSourceDriver
33 {
34  LogSrcDriver super;
35  GString *filename;
36  FileReader *file_reader;
37  FileOpener *file_opener;
43 
44 void affile_sd_set_transport_name(AFFileSourceDriver *s, const gchar *transport_name);
45 gboolean affile_sd_init(LogPipe *s);
46 AFFileSourceDriver *affile_sd_new_instance(gchar *filename, GlobalConfig *cfg);
47 LogDriver *affile_sd_new(gchar *filename, GlobalConfig *cfg);
48 
49 
50 #endif
void affile_sd_set_transport_name(AFFileSourceDriver *s, const gchar *transport_name)
Definition: affile-source.c:41
LogDriver * affile_sd_new(gchar *filename, GlobalConfig *cfg)
Definition: affile-source.c:160
gboolean affile_sd_init(LogPipe *s)
Definition: affile-source.c:88
AFFileSourceDriver * affile_sd_new_instance(gchar *filename, GlobalConfig *cfg)
Definition: affile-source.c:139
Definition: affile-source.h:33
gchar * transport_name
Definition: affile-source.h:40
gsize transport_name_len
Definition: affile-source.h:41
FileOpenerOptions file_opener_options
Definition: affile-source.h:39
FileOpener * file_opener
Definition: affile-source.h:37
FileReaderOptions file_reader_options
Definition: affile-source.h:38
FileReader * file_reader
Definition: affile-source.h:36
LogSrcDriver super
Definition: affile-source.h:34
GString * filename
Definition: affile-source.h:35
Definition: file-opener.h:44
Definition: file-reader.h:30
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34