syslog-ng source
python-logmsg.c File Reference
#include "python-logmsg.h"
#include "compat/compat-python.h"
#include "python-helpers.h"
#include "python-types.h"
#include "python-main.h"
#include "logmsg/logmsg.h"
#include "messages.h"
#include "timeutils/cache.h"
#include "str-utils.h"
#include "timeutils/unixtime.h"
#include "timeutils/misc.h"
#include "msg-format.h"
#include "scratch-buffers.h"
#include "cfg.h"
#include "gsockaddr.h"
#include <datetime.h>
Include dependency graph for python-logmsg.c:

Functions

int py_is_log_message (PyObject *obj)
 
PyObject * py_log_message_new (LogMessage *msg, GlobalConfig *cfg)
 
void py_log_message_global_init (void)
 

Variables

PyTypeObject py_log_message_type
 

Function Documentation

◆ py_is_log_message()

int py_is_log_message ( PyObject *  obj)

◆ py_log_message_global_init()

void py_log_message_global_init ( void  )

◆ py_log_message_new()

PyObject* py_log_message_new ( LogMessage *  msg,
GlobalConfig *  cfg 
)

Variable Documentation

◆ py_log_message_type

PyTypeObject py_log_message_type
Initial value:
=
{
PyVarObject_HEAD_INIT(&PyType_Type, 0)
.tp_name = "LogMessage",
.tp_basicsize = sizeof(PyLogMessage),
.tp_dealloc = (destructor) py_log_message_free,
.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
.tp_doc = "LogMessage class encapsulating a syslog-ng log message",
.tp_new = PyType_GenericNew,
.tp_init = py_log_message_init,
.tp_as_mapping = &py_log_message_mapping,
.tp_methods = py_log_message_methods,
0,
}
Definition: python-logmsg.h:31