Module: kamailio
Branch: 5.2
Commit: 045641ce82ba6150c72a3a25f967fea9a9e551f1
URL:
https://github.com/kamailio/kamailio/commit/045641ce82ba6150c72a3a25f967fea…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-01-22T23:04:11+01:00
corex: declare nio specific globals in c file
(cherry picked from commit 512f89bec0b6ebd2b3c7c16b115f15dbd6de9a39)
---
Modified: src/modules/corex/corex_nio.c
Modified: src/modules/corex/corex_nio.h
---
Diff:
https://github.com/kamailio/kamailio/commit/045641ce82ba6150c72a3a25f967fea…
Patch:
https://github.com/kamailio/kamailio/commit/045641ce82ba6150c72a3a25f967fea…
---
diff --git a/src/modules/corex/corex_nio.c b/src/modules/corex/corex_nio.c
index 6b79fcc648..2e5cdff449 100644
--- a/src/modules/corex/corex_nio.c
+++ b/src/modules/corex/corex_nio.c
@@ -18,6 +18,14 @@
#include "corex_nio.h"
+int nio_route_no;
+int nio_min_msg_len;
+int nio_is_incoming;
+
+str nio_msg_avp_param;
+int_str nio_msg_avp_name;
+unsigned short nio_msg_avp_type;
+
/**
* init nio function
*/
diff --git a/src/modules/corex/corex_nio.h b/src/modules/corex/corex_nio.h
index ec0bbc5ae9..008fcdd7de 100644
--- a/src/modules/corex/corex_nio.h
+++ b/src/modules/corex/corex_nio.h
@@ -32,13 +32,13 @@
#include "../../core/tcp_options.h"
#include "../../core/msg_translator.h"
-int nio_route_no;
-int nio_min_msg_len;
-int nio_is_incoming;
+extern int nio_route_no;
+extern int nio_min_msg_len;
+extern int nio_is_incoming;
-str nio_msg_avp_param;
-int_str nio_msg_avp_name;
-unsigned short nio_msg_avp_type;
+extern str nio_msg_avp_param;
+extern int_str nio_msg_avp_name;
+extern unsigned short nio_msg_avp_type;
int nio_msg_received(sr_event_param_t *evp);
int nio_msg_sent(sr_event_param_t *evp);