Skip to content

Commit

Permalink
ims_charging: use extern to avoid double declaration of globals
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Mar 5, 2020
1 parent 1bbab69 commit a13d49f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/modules/ims_charging/ims_charging_mod.c
Expand Up @@ -25,6 +25,8 @@

MODULE_VERSION

struct dlg_binds* dlgb_p;

/* parameters */
char* ro_destination_host_s = "hss.ims.smilecoms.com";
char* ro_service_context_id_root_s = "32260@3gpp.org";
Expand All @@ -46,6 +48,8 @@ int video_service_identifier = 1001;
int video_rating_group = 200;


struct impu_data impu_data_t;

/* DB params */
static str db_url = str_init(DEFAULT_DB_URL);
static unsigned int db_update_period = DB_DEFAULT_UPDATE_PERIOD;
Expand Down
4 changes: 2 additions & 2 deletions src/modules/ims_charging/ims_ro.c
Expand Up @@ -54,10 +54,10 @@ struct session_setup_data {
unsigned int tlabel;
};

struct dlg_binds* dlgb_p;
extern struct dlg_binds* dlgb_p;
extern struct tm_binds tmb;

int interim_request_credits;
extern int interim_request_credits;

extern int voice_service_identifier;
extern int voice_rating_group;
Expand Down
4 changes: 3 additions & 1 deletion src/modules/ims_charging/ro_session_hash.h
Expand Up @@ -42,7 +42,9 @@ struct diameter_avp_value {
struct impu_data {
str identity;
str contact;
} impu_data_t;
};

extern struct impu_data impu_data_t;

struct ro_session {
volatile int ref;
Expand Down

0 comments on commit a13d49f

Please sign in to comment.