syslog-ng source
simple-function.h File Reference
Include dependency graph for simple-function.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TFSimpleFuncState
 

Macros

#define TEMPLATE_FUNCTION_SIMPLE(x)   TEMPLATE_FUNCTION(TFSimpleFuncState, x, tf_simple_func_prepare, tf_simple_func_eval, tf_simple_func_call, tf_simple_func_free_state, x)
 

Typedefs

typedef void(* TFSimpleFunc) (LogMessage *msg, gint argc, GString *argv[], GString *result, LogMessageValueType *type)
 

Functions

gboolean tf_simple_func_prepare (LogTemplateFunction *self, gpointer state, LogTemplate *parent, gint argc, gchar *argv[], GError **error)
 
void tf_simple_func_eval (LogTemplateFunction *self, gpointer state, LogTemplateInvokeArgs *args)
 
void tf_simple_func_call (LogTemplateFunction *self, gpointer state, const LogTemplateInvokeArgs *args, GString *result, LogMessageValueType *type)
 
void tf_simple_func_free_state (gpointer state)
 

Macro Definition Documentation

◆ TEMPLATE_FUNCTION_SIMPLE

Typedef Documentation

◆ TFSimpleFunc

typedef void(* TFSimpleFunc) (LogMessage *msg, gint argc, GString *argv[], GString *result, LogMessageValueType *type)

Function Documentation

◆ tf_simple_func_call()

void tf_simple_func_call ( LogTemplateFunction *  self,
gpointer  state,
const LogTemplateInvokeArgs args,
GString *  result,
LogMessageValueType type 
)

◆ tf_simple_func_eval()

void tf_simple_func_eval ( LogTemplateFunction *  self,
gpointer  state,
LogTemplateInvokeArgs args 
)

◆ tf_simple_func_free_state()

void tf_simple_func_free_state ( gpointer  state)

◆ tf_simple_func_prepare()

gboolean tf_simple_func_prepare ( LogTemplateFunction *  self,
gpointer  state,
LogTemplate *  parent,
gint  argc,
gchar *  argv[],
GError **  error 
)