syslog-ng source
python-logtemplate.c File Reference
#include "python-logtemplate.h"
#include "python-logtemplate-options.h"
#include "python-logmsg.h"
#include "python-types.h"
#include "python-main.h"
#include "scratch-buffers.h"
#include "messages.h"
Include dependency graph for python-logtemplate.c:

Functions

PyObject * py_log_template_format (PyObject *s, PyObject *args, PyObject *kwrds)
 
int py_log_template_init (PyObject *s, PyObject *args, PyObject *kwds)
 
PyObject * py_log_template_str (PyObject *s)
 
void py_log_template_free (PyLogTemplate *self)
 
void py_log_template_global_init (void)
 

Variables

PyTypeObject py_log_template_type
 
PyObject * PyExc_LogTemplate
 

Function Documentation

◆ py_log_template_format()

PyObject* py_log_template_format ( PyObject *  s,
PyObject *  args,
PyObject *  kwrds 
)

◆ py_log_template_free()

void py_log_template_free ( PyLogTemplate self)

◆ py_log_template_global_init()

void py_log_template_global_init ( void  )

◆ py_log_template_init()

int py_log_template_init ( PyObject *  s,
PyObject *  args,
PyObject *  kwds 
)

◆ py_log_template_str()

PyObject* py_log_template_str ( PyObject *  s)

Variable Documentation

◆ py_log_template_type

PyTypeObject py_log_template_type
Initial value:
=
{
PyVarObject_HEAD_INIT(&PyType_Type, 0)
.tp_name = "LogTemplate",
.tp_basicsize = sizeof(PyLogTemplate),
.tp_dealloc = (destructor) py_log_template_free,
.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
.tp_doc = "LogTemplate class encapsulating a syslog-ng template",
.tp_methods = py_log_template_methods,
.tp_new = PyType_GenericNew,
0,
}
PyObject * py_log_template_str(PyObject *s)
Definition: python-logtemplate.c:125
int py_log_template_init(PyObject *s, PyObject *args, PyObject *kwds)
Definition: python-logtemplate.c:89
void py_log_template_free(PyLogTemplate *self)
Definition: python-logtemplate.c:133
Definition: python-logtemplate.h:32

◆ PyExc_LogTemplate

PyObject* PyExc_LogTemplate