Browse code

rtp_media_server: declare variables in .c files

- extern in .h files, GH #2522

Daniel-Constantin Mierla authored on 21/10/2020 06:24:53
Showing 3 changed files
... ...
@@ -19,9 +19,12 @@
19 19
  */
20 20
 
21 21
 #include "rtp_media_server.h"
22
+
22 23
 extern rms_dialog_info_t *rms_dialog_list;
23 24
 extern int in_rms_process;
24 25
 
26
+ser_lock_t dialog_list_mutex;
27
+
25 28
 static void rms_action_free(rms_dialog_info_t *si)
26 29
 {
27 30
 	rms_action_t *a, *tmp;
... ...
@@ -36,6 +36,8 @@ static char *rms_answer_default_route = "rms:start";
36 36
 int in_rms_process;
37 37
 rms_t *rms;
38 38
 
39
+struct tm_binds tmb;
40
+
39 41
 static rms_dialog_info_t *rms_dialog_create_leg(rms_dialog_info_t *di, struct sip_msg *msg);
40 42
 static int fixup_rms_action_play(void **param, int param_no);
41 43
 static int fixup_rms_bridge(void **param, int param_no);
... ...
@@ -39,7 +39,7 @@
39 39
 #include "rms_media.h"
40 40
 #include "rms_dialog_info.h"
41 41
 
42
-ser_lock_t dialog_list_mutex;
42
+extern ser_lock_t dialog_list_mutex;
43 43
 
44 44
 
45 45
 
... ...
@@ -51,7 +51,7 @@ typedef struct rms
51 51
 	char *local_ip;
52 52
 } rms_t;
53 53
 
54
-struct tm_binds tmb;
54
+extern struct tm_binds tmb;
55 55
 
56 56
 
57 57
 #endif