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_TEMPLATE_H
25 #define _SNG_PYTHON_TEMPLATE_H
26 
27 #include "python-module.h"
28 #include "template/templates.h"
29 
30 typedef struct _PyLogTemplate
31 {
32   PyObject_HEAD
33   LogTemplate *template;
34   LogTemplateOptions *template_options;
35 } PyLogTemplate;
36 
37 extern PyTypeObject py_log_template_type;
38 extern PyObject *PyExc_LogTemplate;
39 
40 
41 void py_log_template_init(void);
42 PyObject *py_log_template_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
43 void py_log_template_free(PyLogTemplate *self);
44 PyObject *py_log_template_format(PyObject *s, PyObject *args, PyObject *kwds);
45 
46 #endif
47