syslog-ng source
function.h File Reference
#include "syslog-ng.h"
#include "plugin-types.h"
#include "common-template-typedefs.h"
Include dependency graph for function.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LogTemplateInvokeArgs
 
struct  LogTemplateFunction
 

Macros

#define TEMPLATE_INVOKE_MAX_ARGS   64
 
#define TEMPLATE_FUNCTION_PROTOTYPE(prefix)
 
#define TEMPLATE_FUNCTION_DECLARE(prefix)    TEMPLATE_FUNCTION_PROTOTYPE(prefix);
 
#define TEMPLATE_FUNCTION(state_struct, prefix, prepare, eval, call, free_state, arg)
 
#define TEMPLATE_FUNCTION_PLUGIN(x, tf_name)
 

Macro Definition Documentation

◆ TEMPLATE_FUNCTION

#define TEMPLATE_FUNCTION (   state_struct,
  prefix,
  prepare,
  eval,
  call,
  free_state,
  arg 
)
Value:
{ \
static LogTemplateFunction func = { \
sizeof(state_struct), \
prepare, \
eval, \
call, \
free_state, \
NULL, \
arg \
}; \
return &func; \
}
#define TEMPLATE_FUNCTION_PROTOTYPE(prefix)
Definition: function.h:79

◆ TEMPLATE_FUNCTION_DECLARE

#define TEMPLATE_FUNCTION_DECLARE (   prefix)     TEMPLATE_FUNCTION_PROTOTYPE(prefix);

◆ TEMPLATE_FUNCTION_PLUGIN

#define TEMPLATE_FUNCTION_PLUGIN (   x,
  tf_name 
)
Value:
{ \
.type = LL_CONTEXT_TEMPLATE_FUNC, \
.name = tf_name, \
.construct = x ## _construct, \
}

◆ TEMPLATE_FUNCTION_PROTOTYPE

#define TEMPLATE_FUNCTION_PROTOTYPE (   prefix)
Value:
gpointer \
prefix ## _construct(Plugin *self)

◆ TEMPLATE_INVOKE_MAX_ARGS

#define TEMPLATE_INVOKE_MAX_ARGS   64