syslog-ng source
python-main.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Balabit
3  * Copyright (c) 2015 Balazs Scheidler <balazs.scheidler@balabit.com>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 as published
7  * by the Free Software Foundation, or (at your option) any later version.
8  *
9  * This program 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
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; 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 #ifndef PYTHON_MAIN_H_INCLUDED
24 #define PYTHON_MAIN_H_INCLUDED 1
25 
26 #include "python-config.h"
27 
28 /* we have a GlobalConfig specific main module, which gets switched as
29  * configurations are initialized or deinitialized. This main module hosts
30  * the code in global python {} blocks. Also, some functionality (e.g.
31  * Persist or LogTemplate) relate to a GlobalConfig instance */
32 
36 
37 PyObject *_py_get_main_module(PythonConfig *pc);
38 
39 #endif
void _py_switch_to_config_main_module(PythonConfig *pc)
Definition: python-main.c:96
PyObject * _py_get_main_module(PythonConfig *pc)
Definition: python-main.c:114
PythonConfig * _py_get_config_from_main_module(void)
Definition: python-main.c:135
gboolean _py_init_main_module_for_config(PythonConfig *pc)
Definition: python-main.c:122
Definition: python-config.h:30