瀏覽代碼

corex: declare nio specific globals in c file

(cherry picked from commit 512f89bec0b6ebd2b3c7c16b115f15dbd6de9a39)
Daniel-Constantin Mierla 5 年之前
父節點
當前提交
045641ce82
共有 2 個文件被更改,包括 14 次插入6 次删除
  1. 8 0
      src/modules/corex/corex_nio.c
  2. 6 6
      src/modules/corex/corex_nio.h

+ 8 - 0
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
  */

+ 6 - 6
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);