~ubuntu-branches/ubuntu/vivid/syslog-ng-incubator/vivid-proposed

« back to all changes in this revision

Viewing changes to modules/lua/lua-plugin.c

  • Committer: Package Import Robot
  • Author(s): Gergely Nagy
  • Date: 2014-03-14 11:34:57 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140314113457-yqfw8yp81pysy32r
Tags: 0.2.1-1
* New upstream release:
  + New module: syslog-ng-mod-graphite
  + New module: syslog-ng-mod-elasticsearch
* debian/copyright updated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2013, 2014 BalaBit IT Ltd, Budapest, Hungary
 
3
 * Copyright (c) 2013, 2014 Viktor Tusa <tusa@balabit.hu>
 
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 "lua-dest.h"
 
25
#include "lua-parser.h"
 
26
 
 
27
#include "plugin.h"
 
28
#include "plugin-types.h"
 
29
 
 
30
extern CfgParser lua_parser;
 
31
 
 
32
static Plugin lua_plugin =
 
33
{
 
34
  .type = LL_CONTEXT_DESTINATION,
 
35
  .name = "lua",
 
36
  .parser = &lua_parser,
 
37
};
 
38
 
 
39
gboolean
 
40
lua_module_init(GlobalConfig *cfg, CfgArgs *args G_GNUC_UNUSED)
 
41
{
 
42
  plugin_register(cfg, &lua_plugin, 1);
 
43
  return TRUE;
 
44
}
 
45
 
 
46
const ModuleInfo module_info =
 
47
{
 
48
  .canonical_name = "lua",
 
49
  .version = VERSION,
 
50
  .description = "The lua module provides lua scripted destination support for syslog-ng.",
 
51
  .core_revision = VERSION_CURRENT_VER_ONLY,
 
52
  .plugins = &lua_plugin,
 
53
  .plugins_len = 1,
 
54
};