1 /*
2  * Copyright (c) 2002-2017 Balabit
3  * Copyright (c) 1998-2017 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 #include "cfg-parser.h"
25 #include "tags-parser.h"
26 #include "plugin.h"
27 #include "plugin-types.h"
28 
29 extern CfgParser tags_parser_parser;
30 
31 static Plugin tags_parser_plugins[] =
32 {
33   {
34     .type = LL_CONTEXT_PARSER,
35     .name = "tags-parser",
36     .parser = &tags_parser_parser,
37   },
38 };
39 
40 gboolean
tags_parser_module_init(PluginContext * context,CfgArgs * args)41 tags_parser_module_init(PluginContext *context, CfgArgs *args)
42 {
43   plugin_register(context, tags_parser_plugins, G_N_ELEMENTS(tags_parser_plugins));
44   return TRUE;
45 }
46 
47 const ModuleInfo module_info =
48 {
49   .canonical_name = "tags_parser",
50   .version = SYSLOG_NG_VERSION,
51   .description = "The tags_parser module provides parsing support for restoring message tags as produced by the TAGS macro.",
52   .core_revision = SYSLOG_NG_SOURCE_REVISION,
53   .plugins = tags_parser_plugins,
54   .plugins_len = G_N_ELEMENTS(tags_parser_plugins),
55 };
56