[sr-dev] git:master:a771d9ab: app_python3: declare global vars extern in header file

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 9 08:28:25 CET 2020


Module: kamailio
Branch: master
Commit: a771d9abd9ce97228efa7a0dfc9c4d89690e9b38
URL: https://github.com/kamailio/kamailio/commit/a771d9abd9ce97228efa7a0dfc9c4d89690e9b38

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-03-09T08:27:47+01:00

app_python3: declare global vars extern in header file

---

Modified: src/modules/app_python3/app_python3_mod.c
Modified: src/modules/app_python3/python_support.h

---

Diff:  https://github.com/kamailio/kamailio/commit/a771d9abd9ce97228efa7a0dfc9c4d89690e9b38.diff
Patch: https://github.com/kamailio/kamailio/commit/a771d9abd9ce97228efa7a0dfc9c4d89690e9b38.patch

---

diff --git a/src/modules/app_python3/app_python3_mod.c b/src/modules/app_python3/app_python3_mod.c
index 92ce10e04f..502a6d540b 100644
--- a/src/modules/app_python3/app_python3_mod.c
+++ b/src/modules/app_python3/app_python3_mod.c
@@ -53,6 +53,7 @@ static int child_init(int rank);
 static void mod_destroy(void);
 
 PyObject *_sr_apy_handler_obj = NULL;
+PyObject *format_exc_obj = NULL;
 
 char *dname = NULL, *bname = NULL;
 
diff --git a/src/modules/app_python3/python_support.h b/src/modules/app_python3/python_support.h
index 97c4e72e3e..8859f9a32a 100644
--- a/src/modules/app_python3/python_support.h
+++ b/src/modules/app_python3/python_support.h
@@ -25,7 +25,7 @@
 #include <Python.h>
 #include <stdarg.h>
 
-PyObject *format_exc_obj;
+extern PyObject *format_exc_obj;
 
 void python_handle_exception(const char *, ...);
 




More information about the sr-dev mailing list