syslog-ng source
tfgetent.c File Reference
#include "syslog-ng.h"
#include "logmsg/logmsg.h"
#include "plugin.h"
#include "plugin-types.h"
#include "cfg.h"
#include "parse-number.h"
#include "template/simple-function.h"
#include "compat/getent.h"
#include <grp.h>
#include <pwd.h>
#include <netdb.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <stddef.h>
#include "getent-protocols.c"
#include "getent-services.c"
#include "getent-group.c"
#include "getent-passwd.c"
Include dependency graph for tfgetent.c:

Classes

struct  formatter_map_t
 

Typedefs

typedef gboolean(* lookup_method) (gchar *key, gchar *member_name, GString *result)
 
typedef gboolean(* format_member) (gchar *member_name, gpointer member, GString *result)
 

Functions

 TEMPLATE_FUNCTION_SIMPLE (tf_getent)
 
gboolean getent_plugin_module_init (PluginContext *context, CfgArgs *args)
 

Variables

const ModuleInfo module_info
 

Typedef Documentation

◆ format_member

typedef gboolean(* format_member) (gchar *member_name, gpointer member, GString *result)

◆ lookup_method

typedef gboolean(* lookup_method) (gchar *key, gchar *member_name, GString *result)

Function Documentation

◆ getent_plugin_module_init()

gboolean getent_plugin_module_init ( PluginContext *  context,
CfgArgs *  args 
)

◆ TEMPLATE_FUNCTION_SIMPLE()

TEMPLATE_FUNCTION_SIMPLE ( tf_getent  )

Variable Documentation

◆ entity

gchar* entity

◆ lookup

lookup_method lookup

◆ module_info

const ModuleInfo module_info
Initial value:
=
{
.canonical_name = "getent-plugin",
.version = SYSLOG_NG_VERSION,
.description = "The getent module provides getent template functions for syslog-ng.",
.core_revision = SYSLOG_NG_SOURCE_REVISION,
.plugins = getent_plugins,
.plugins_len = G_N_ELEMENTS(getent_plugins),
}