syslog-ng source
CfgBlockGenerator Struct Reference

#include <cfg-block-generator.h>

Public Attributes

gint ref_cnt
 
gint context
 
gchar * name
 
gboolean suppress_backticks
 
const gchar *(* format_name )(CfgBlockGenerator *self, gchar *buf, gsize buf_len)
 
gboolean(* generate )(CfgBlockGenerator *self, GlobalConfig *cfg, gpointer args, GString *result, const gchar *reference)
 
void(* free_fn )(CfgBlockGenerator *self)
 

Detailed Description

CfgBlockGenerator:

This class describes a block generator, e.g. a function callback that returns a configuration snippet in a given context. Each user-defined "block" results in a generator to be registered, but theoretically this mechanism can be used to write plugins that generate syslog-ng configuration on the fly, based on system settings for example.

Member Data Documentation

◆ context

gint CfgBlockGenerator::context

◆ format_name

const gchar*(* CfgBlockGenerator::format_name) (CfgBlockGenerator *self, gchar *buf, gsize buf_len)

◆ free_fn

void(* CfgBlockGenerator::free_fn) (CfgBlockGenerator *self)

◆ generate

gboolean(* CfgBlockGenerator::generate) (CfgBlockGenerator *self, GlobalConfig *cfg, gpointer args, GString *result, const gchar *reference)

◆ name

gchar* CfgBlockGenerator::name

◆ ref_cnt

gint CfgBlockGenerator::ref_cnt

◆ suppress_backticks

gboolean CfgBlockGenerator::suppress_backticks

The documentation for this struct was generated from the following file: