syslog-ng source
system-source.c File Reference
#include "cfg.h"
#include "cfg-block-generator.h"
#include "block-ref-parser.h"
#include "messages.h"
#include "plugin.h"
#include "plugin-types.h"
#include "str-utils.h"
#include <fcntl.h>
#include <sys/utsname.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <iv.h>
#include "service-management.h"
Include dependency graph for system-source.c:

Functions

CfgBlockGenerator * system_source_generator_new (gint context, const gchar *name)
 
gpointer system_source_construct (Plugin *p)
 
gboolean system_source_module_init (PluginContext *context, CfgArgs *args)
 

Variables

Plugin system_plugins []
 
const ModuleInfo module_info
 

Function Documentation

◆ system_source_construct()

gpointer system_source_construct ( Plugin *  p)

◆ system_source_generator_new()

CfgBlockGenerator* system_source_generator_new ( gint  context,
const gchar *  name 
)

◆ system_source_module_init()

gboolean system_source_module_init ( PluginContext *  context,
CfgArgs *  args 
)

Variable Documentation

◆ module_info

const ModuleInfo module_info
Initial value:
=
{
.canonical_name = "system-source",
.version = SYSLOG_NG_VERSION,
.description = "The system-source module provides support for determining the system log sources at run time.",
.core_revision = SYSLOG_NG_SOURCE_REVISION,
.plugins = system_plugins,
.plugins_len = G_N_ELEMENTS(system_plugins),
}
Plugin system_plugins[]
Definition: system-source.c:416

◆ system_plugins

Plugin system_plugins[]
Initial value:
=
{
{
.type = LL_CONTEXT_SOURCE | LL_CONTEXT_FLAG_GENERATOR,
.name = "system",
.parser = &block_ref_parser
}
}
CfgParser block_ref_parser
Definition: block-ref-parser.c:38
#define LL_CONTEXT_FLAG_GENERATOR
Definition: plugin-types.h:54
gpointer system_source_construct(Plugin *p)
Definition: system-source.c:411