Browse code

app_python3: first release

- use same symbols names as app_python so these two modules cannot be used together
- use GIL for thread management

AnthonyA authored on 16/02/2018 13:37:33 • Daniel-Constantin Mierla committed on 20/02/2018 09:11:48
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,36 @@
1
+/**
2
+ * Copyright (C) 2012 Konstantin Mosesov
3
+ *
4
+ * This file is part of Kamailio, a free SIP server.
5
+ *
6
+ * This file is free software; you can redistribute it and/or modify
7
+ * it under the terms of the GNU General Public License as published by
8
+ * the Free Software Foundation; either version 2 of the License, or
9
+ * (at your option) any later version
10
+ *
11
+ *
12
+ * This file is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU General Public License
18
+ * along with this program; if not, write to the Free Software
19
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
20
+ *
21
+ */
22
+
23
+#ifndef	__API__MOD_CORE_H__
24
+#define	__API__MOD_CORE_H__
25
+
26
+#include <Python.h>
27
+#include <libgen.h>
28
+
29
+extern PyObject *_sr_apy_core_module;
30
+
31
+extern PyMethodDef CoreMethods[];
32
+
33
+void init_mod_Core(void);
34
+void destroy_mod_Core(void);
35
+
36
+#endif