Browse code

ims_charging: use extern to avoid double declaration of globals

Daniel-Constantin Mierla authored on 05/03/2020 12:45:36
Showing 3 changed files
... ...
@@ -25,6 +25,8 @@
25 25
 
26 26
 MODULE_VERSION
27 27
 
28
+struct dlg_binds* dlgb_p;
29
+
28 30
 /* parameters */
29 31
 char* ro_destination_host_s = "hss.ims.smilecoms.com";
30 32
 char* ro_service_context_id_root_s = "32260@3gpp.org";
... ...
@@ -46,6 +48,8 @@ int video_service_identifier = 1001;
46 48
 int video_rating_group = 200;
47 49
 
48 50
 
51
+struct impu_data impu_data_t;
52
+
49 53
 /* DB params */
50 54
 static str db_url = str_init(DEFAULT_DB_URL);
51 55
 static unsigned int db_update_period = DB_DEFAULT_UPDATE_PERIOD;
... ...
@@ -54,10 +54,10 @@ struct session_setup_data {
54 54
     unsigned int tlabel;
55 55
 };
56 56
 
57
-struct dlg_binds* dlgb_p;
57
+extern struct dlg_binds* dlgb_p;
58 58
 extern struct tm_binds tmb;
59 59
 
60
-int interim_request_credits;
60
+extern int interim_request_credits;
61 61
 
62 62
 extern int voice_service_identifier;
63 63
 extern int voice_rating_group;
... ...
@@ -42,7 +42,9 @@ struct diameter_avp_value {
42 42
 struct impu_data {
43 43
     str identity;
44 44
     str contact;
45
-} impu_data_t;
45
+};
46
+
47
+extern struct impu_data impu_data_t;
46 48
 
47 49
 struct ro_session {
48 50
     volatile int ref;