浏览代码

ims_qos: use extern in header files not to redeclare variables

Daniel-Constantin Mierla 5 年之前
父节点
当前提交
df5521fcdf

+ 2 - 2
src/modules/ims_qos/cdpeventprocessor.h

@@ -67,8 +67,8 @@ typedef struct {
 	int size;
 } cdp_cb_event_list_t;
 
-str early_qosrelease_reason;
-str confirmed_qosrelease_headers;
+extern str early_qosrelease_reason;
+extern str confirmed_qosrelease_headers;
 
 int init_cdp_cb_event_list();
 void destroy_cdp_cb_event_list();

+ 1 - 1
src/modules/ims_qos/rx_aar.c

@@ -71,7 +71,7 @@
 #define macro_name(_rc)	#_rc
 
 //extern struct tm_binds tmb;
-usrloc_api_t ul;
+extern usrloc_api_t ul;
 
 extern struct ims_qos_counters_h ims_qos_cnts_h;
 

+ 1 - 1
src/modules/ims_qos/rx_aar.h

@@ -55,7 +55,7 @@
 #include "../../core/locking.h"
 
 struct cdp_binds cdpb;
-cdp_avp_bind_t *cdp_avp;
+extern cdp_avp_bind_t *cdp_avp;
 
 /*this is the parcel to pass for CDP async for AAR*/
 typedef struct saved_transaction {

+ 2 - 2
src/modules/ims_qos/rx_avp.h

@@ -64,8 +64,8 @@ struct AAA_AVP_List;
 struct AAAMessage;
 enum dialog_direction;
 
-int audio_default_bandwidth;
-int video_default_bandwidth;
+extern int audio_default_bandwidth;
+extern int video_default_bandwidth;
 
 
 /*helper*/