syslog-ng source
syslog-ng.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 library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library 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 GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; 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 #ifndef SYSLOG_NG_H_INCLUDED
26 #define SYSLOG_NG_H_INCLUDED
27 
28 #include <syslog-ng-config.h>
29 
30 #if SYSLOG_NG_ENABLE_DEBUG
31 #undef YYDEBUG
32 #define YYDEBUG 1
33 #endif
34 
35 #include "compat/glib.h"
36 #include "versioning.h"
37 
38 #define PATH_SYSLOG_NG_CONF SYSLOG_NG_PATH_SYSCONFDIR "/syslog-ng.conf"
39 #define PATH_INSTALL_DAT SYSLOG_NG_PATH_SYSCONFDIR "/install.dat"
40 #define PATH_PIDFILE SYSLOG_NG_PATH_PIDFILEDIR "/syslog-ng.pid"
41 #define PATH_CONTROL_SOCKET SYSLOG_NG_PATH_PIDFILEDIR "/syslog-ng.ctl"
42 #if SYSLOG_NG_ENABLE_ENV_WRAPPER
43 #define PATH_SYSLOGNG SYSLOG_NG_PATH_LIBEXECDIR "/syslog-ng"
44 #endif
45 #define PATH_PERSIST_CONFIG SYSLOG_NG_PATH_LOCALSTATEDIR "/syslog-ng.persist"
46 
47 typedef struct _LogPipe LogPipe;
48 typedef struct _LogMessage LogMessage;
49 typedef struct _GlobalConfig GlobalConfig;
50 typedef struct _CfgLexer CfgLexer;
51 typedef struct _PluginContext PluginContext;
52 typedef struct _Bookmark Bookmark;
53 typedef struct _AckTracker AckTracker;
54 typedef struct _AckRecord AckRecord;
55 typedef struct _AckTrackerFactory AckTrackerFactory;
56 typedef struct _StatsClusterKey StatsClusterKey;
57 typedef struct _StatsClusterLabel StatsClusterLabel;
58 
59 /* configuration being parsed, used by the bison generated code, NULL whenever parsing is finished. */
60 extern GlobalConfig *configuration;
61 
62 #endif
Definition: ack_tracker.h:46
Definition: ack_tracker_factory.h:35
Definition: ack_tracker.h:34
Definition: bookmark.h:40
Definition: cfg-lexer.h:167
Definition: cfg.h:59
Definition: logmsg.h:241
Definition: logpipe.h:300
Definition: plugin.h:94
Definition: stats-cluster.h:123
Definition: stats-cluster.h:108
GlobalConfig * configuration
Definition: globals.c:27