Skip to content

Commit

Permalink
app_python Avoid collission in name space - rename init_modules to ap…
Browse files Browse the repository at this point in the history
…_init_modules
  • Loading branch information
oej committed Nov 13, 2014
1 parent 868a34e commit ca60c77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/app_python/python_iface.c
Expand Up @@ -43,7 +43,7 @@
#include "mod_Logger.h"


int init_modules(void)
int ap_init_modules(void)
{
init_mod_Router();
init_mod_Core();
Expand Down
2 changes: 1 addition & 1 deletion modules/app_python/python_iface.h
Expand Up @@ -26,6 +26,6 @@
#include <Python.h>

extern PyMethodDef RouterMethods[];
int init_modules(void);
int ap_init_modules(void);

#endif
2 changes: 1 addition & 1 deletion modules/app_python/python_mod.c
Expand Up @@ -156,7 +156,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");
Expand Down

0 comments on commit ca60c77

Please sign in to comment.