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

« back to all changes in this revision

Viewing changes to modules/monitor-source/monitor-source-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) 2014 BalaBit IT Ltd, Budapest, Hungary
 
3
 * Copyright (c) 2014 Gergely Nagy <algernon@balabit.hu>
 
4
 * Copyright (c) 2014 Viktor Tusa <tusa@balabit.hu>
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify it
 
7
 * under the terms of the GNU General Public License version 2 as published
 
8
 * by the Free Software Foundation, or (at your option) any later version.
 
9
 *
 
10
 * This program 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
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; 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
#include "monitor-source.h"
 
26
#include "monitor-source-parser.h"
 
27
 
 
28
#include "plugin.h"
 
29
#include "plugin-types.h"
 
30
 
 
31
extern CfgParser monitor_parser;
 
32
 
 
33
static Plugin monitor_plugin =
 
34
{
 
35
  .type = LL_CONTEXT_SOURCE,
 
36
  .name = "monitor",
 
37
  .parser = &monitor_parser,
 
38
};
 
39
 
 
40
gboolean
 
41
monitor_module_init(GlobalConfig *cfg, CfgArgs *args G_GNUC_UNUSED)
 
42
{
 
43
  plugin_register(cfg, &monitor_plugin, 1);
 
44
  return TRUE;
 
45
}
 
46
 
 
47
const ModuleInfo module_info =
 
48
{
 
49
  .canonical_name = "monitor",
 
50
  .version = VERSION,
 
51
  .description = "The monitor module provides stuff.",
 
52
  .core_revision = VERSION_CURRENT_VER_ONLY,
 
53
  .plugins = &monitor_plugin,
 
54
  .plugins_len = 1,
 
55
};