syslog-ng source
python-logtemplate-options.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Balabit
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 
24 #ifndef _SNG_PYTHON_LOGTEMPLATEOPTIONS_H
25 #define _SNG_PYTHON_LOGTEMPLATEOPTIONS_H
26 
27 #include "python-module.h"
28 #include "template/templates.h"
29 
30 typedef struct _PyLogTemplateOptions
31 {
32  PyObject_HEAD
33  LogTemplateOptions template_options;
35 
36 extern PyTypeObject py_log_template_options_type;
37 
38 int py_is_log_template_options(PyObject *obj);
39 PyObject *py_log_template_options_new(LogTemplateOptions *template_options, GlobalConfig *cfg);
40 
42 
43 #endif
int py_is_log_template_options(PyObject *obj)
Definition: python-logtemplate-options.c:28
PyTypeObject py_log_template_options_type
Definition: python-logtemplate-options.c:64
PyObject * py_log_template_options_new(LogTemplateOptions *template_options, GlobalConfig *cfg)
Definition: python-logtemplate-options.c:34
void py_log_template_options_global_init(void)
Definition: python-logtemplate-options.c:78
Definition: python-logtemplate-options.h:31
PyObject_HEAD LogTemplateOptions template_options
Definition: python-logtemplate-options.h:33
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34
LogTemplateOptions template_options
Definition: test_value_pairs.c:65