Skip to content

Commit

Permalink
rtp_media_server: declare variables in .c files
Browse files Browse the repository at this point in the history
- extern in .h files, GH #2522
  • Loading branch information
miconda committed Oct 21, 2020
1 parent fcdfaf9 commit 128ba4f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/modules/rtp_media_server/rms_dialog_info.c
Expand Up @@ -19,9 +19,12 @@
*/

#include "rtp_media_server.h"

extern rms_dialog_info_t *rms_dialog_list;
extern int in_rms_process;

ser_lock_t dialog_list_mutex;

static void rms_action_free(rms_dialog_info_t *si)
{
rms_action_t *a, *tmp;
Expand Down
2 changes: 2 additions & 0 deletions src/modules/rtp_media_server/rtp_media_server.c
Expand Up @@ -36,6 +36,8 @@ static char *rms_answer_default_route = "rms:start";
int in_rms_process;
rms_t *rms;

struct tm_binds tmb;

static rms_dialog_info_t *rms_dialog_create_leg(rms_dialog_info_t *di, struct sip_msg *msg);
static int fixup_rms_action_play(void **param, int param_no);
static int fixup_rms_bridge(void **param, int param_no);
Expand Down
4 changes: 2 additions & 2 deletions src/modules/rtp_media_server/rtp_media_server.h
Expand Up @@ -39,7 +39,7 @@
#include "rms_media.h"
#include "rms_dialog_info.h"

ser_lock_t dialog_list_mutex;
extern ser_lock_t dialog_list_mutex;



Expand All @@ -51,7 +51,7 @@ typedef struct rms
char *local_ip;
} rms_t;

struct tm_binds tmb;
extern struct tm_binds tmb;


#endif

0 comments on commit 128ba4f

Please sign in to comment.