Module: sip-router
Branch: 4.1
Commit: e9ca0a2c4e5ca2a77020dda247a9eaa641cd5557
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e9ca0a2…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: Thu Nov 13 12:16:25 2014 +0100
app_python Avoid collission in name space - rename init_modules to ap_init_modules
---
modules/app_python/python_iface.c | 2 +-
modules/app_python/python_iface.h | 2 +-
modules/app_python/python_mod.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/app_python/python_iface.c b/modules/app_python/python_iface.c
index 3c7aed3..951efca 100644
--- a/modules/app_python/python_iface.c
+++ b/modules/app_python/python_iface.c
@@ -43,7 +43,7 @@
#include "mod_Logger.h"
-int init_modules(void)
+int ap_init_modules(void)
{
init_mod_Router();
init_mod_Core();
diff --git a/modules/app_python/python_iface.h b/modules/app_python/python_iface.h
index 2693917..3b58afa 100644
--- a/modules/app_python/python_iface.h
+++ b/modules/app_python/python_iface.h
@@ -26,6 +26,6 @@
#include <Python.h>
extern PyMethodDef RouterMethods[];
-int init_modules(void);
+int ap_init_modules(void);
#endif
diff --git a/modules/app_python/python_mod.c b/modules/app_python/python_mod.c
index 1f6e30e..bef35ca 100644
--- a/modules/app_python/python_mod.c
+++ b/modules/app_python/python_mod.c
@@ -166,7 +166,7 @@ static int mod_init(void)
PyList_Insert(sys_path, 0, pDir);
Py_DECREF(pDir);
- if (init_modules() != 0) {
+ if (ap_init_modules() != 0) {
if (!PyErr_Occurred())
PyErr_SetString(PyExc_AttributeError, "init_modules() has failed");
python_handle_exception("mod_init");