Explorar el Código

corex: declare nio specific globals in c file

Daniel-Constantin Mierla hace 5 años
padre
commit
512f89bec0
Se han modificado 2 ficheros con 14 adiciones y 6 borrados
  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);