syslog-ng source
cfg-grammar-internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002-2014 Balabit
3  * Copyright (c) 1998-2013 Balázs Scheidler
4  * Copyright (c) 2020 Balázs Scheidler <bazsi77@gmail.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  * As an additional exemption you are allowed to compile & link against the
21  * OpenSSL libraries as published by the OpenSSL project. See the file
22  * COPYING for details.
23  *
24  */
25 #ifndef CFG_GRAMMAR_INTERNAL_H_INCLUDED
26 #define CFG_GRAMMAR_INTERNAL_H_INCLUDED 1
27 
28 #include "syslog-ng.h"
29 
30 #include "driver.h"
31 #include "logreader.h"
32 #include "logwriter.h"
33 #include "logmatcher.h"
34 #include "parser/parser-expr.h"
35 #include "filter/filter-expr.h"
37 #include "rewrite/rewrite-expr.h"
38 #include "logproto/logproto.h"
39 #include "afinter.h"
40 #include "str-utils.h"
41 #include "logscheduler-pipe.h"
42 
44 #include "filter/filter-pipe.h"
47 #include "block-ref-parser.h"
48 #include "template/user-function.h"
49 #include "cfg-block.h"
50 #include "cfg-path.h"
53 
56 
57 #include "stats/stats.h"
59 
60 #include <sys/types.h>
61 #include <sys/stat.h>
62 #include <unistd.h>
63 
64 /* uses struct declarations instead of the typedefs to avoid having to
65  * include logreader/logwriter/driver.h, which defines the typedefs. This
66  * is to avoid including unnecessary dependencies into grammars that are not
67  * themselves reader/writer based */
68 
71 extern LogProtoServerOptionsStorage *last_proto_server_options;
76 extern LogDriver *last_driver;
78 extern LogParser *last_parser;
79 extern FilterExprNode *last_filter_expr;
80 extern LogTemplateOptions *last_template_options;
81 extern ValuePairs *last_value_pairs;
82 extern ValuePairsTransformSet *last_vp_transset;
87 extern LogRewrite *last_rewrite;
88 extern CfgArgs *last_block_args;
92 
93 
94 #endif
MsgFormatOptions * last_msg_format_options
Definition: cfg-grammar-internal.c:37
FilePermOptions * last_file_perm_options
Definition: cfg-grammar-internal.c:38
DynMetricsTemplate * last_dyn_metrics_template
Definition: cfg-grammar-internal.c:53
LogProtoServerOptionsStorage * last_proto_server_options
Definition: cfg-grammar-internal.c:33
LogProtoClientOptionsStorage * last_proto_client_options
Definition: cfg-grammar-internal.c:34
HostResolveOptions * last_host_resolve_options
Definition: cfg-grammar-internal.c:45
LogTemplateOptions * last_template_options
Definition: cfg-grammar-internal.c:39
HealthCheckStatsOptions * last_healthcheck_options
Definition: cfg-grammar-internal.c:47
LogSchedulerOptions * last_scheduler_options
Definition: cfg-grammar-internal.c:29
LogWriterOptions * last_writer_options
Definition: cfg-grammar-internal.c:36
LogDriver * last_driver
Definition: cfg-grammar-internal.c:28
LogRewrite * last_rewrite
Definition: cfg-grammar-internal.c:49
LogReaderOptions * last_reader_options
Definition: cfg-grammar-internal.c:35
MultiLineOptions * last_multi_line_options
Definition: cfg-grammar-internal.c:52
StatsOptions * last_stats_options
Definition: cfg-grammar-internal.c:46
ValuePairs * last_value_pairs
Definition: cfg-grammar-internal.c:42
LogSourceOptions * last_source_options
Definition: cfg-grammar-internal.c:32
LogParser * last_parser
Definition: cfg-grammar-internal.c:30
CfgArgs * last_block_args
Definition: cfg-grammar-internal.c:41
FilterExprNode * last_filter_expr
Definition: cfg-grammar-internal.c:31
DNSCacheOptions * last_dns_cache_options
Definition: cfg-grammar-internal.c:48
LogMatcherOptions * last_matcher_options
Definition: cfg-grammar-internal.c:44
ValuePairsTransformSet * last_vp_transset
Definition: cfg-grammar-internal.c:43
Definition: dnscache.h:32
Definition: dyn-metrics-template.h:37
Definition: file-perms.h:31
Definition: healthcheck-stats.h:30
Definition: host-resolve.h:30
Definition: logmatcher.h:57
Definition: logreader.h:47
Definition: logscheduler.h:61
Definition: logsource.h:36
Definition: logwriter.h:51
Definition: msg-format.h:69
Definition: multi-line-factory.h:43
Definition: stats.h:33
Definition: logproto-client.h:42