Skip to content

Commit

Permalink
Merge branch 'gcc10_no_common' of https://github.com/lemenkov/opensips
Browse files Browse the repository at this point in the history
…into lemenkov-gcc10_no_common
  • Loading branch information
liviuchircu committed Feb 10, 2020
2 parents 52f3fe2 + 7b59ee1 commit d986b8c
Show file tree
Hide file tree
Showing 34 changed files with 79 additions and 60 deletions.
3 changes: 0 additions & 3 deletions mem/hp_malloc.c
Expand Up @@ -116,9 +116,6 @@ int mem_warming_enabled;
int mem_warming_percentage = MEM_WARMING_DEFAULT_PERCENTAGE;

#if defined(HP_MALLOC)
stat_var *rpm_used;
stat_var *rpm_rused;
stat_var *rpm_frags;
#if !defined(HP_MALLOC_FAST_STATS)
stat_var *shm_used;
stat_var *shm_rused;
Expand Down
3 changes: 3 additions & 0 deletions mi/mi_trace.c
Expand Up @@ -39,6 +39,9 @@ int mi_message_id;
static char* correlation_name = "correlation_id";
str correlation_value;
int correlation_id=-1, correlation_vendor=-1;
str mi_trpl;
struct mi_trace_req mi_treq;
struct mi_trace_param mi_tparam;


void try_load_trace_api(void)
Expand Down
9 changes: 6 additions & 3 deletions mi/mi_trace.h
Expand Up @@ -37,18 +37,21 @@ struct mi_trace_req {
str cmd;
str backend;
char params[MAX_TRACE_FIELD];
} mi_treq;
};

str mi_trpl;
extern str mi_trpl;

enum mi_trace_type { MI_TRACE_REQ, MI_TRACE_RPL};

struct mi_trace_param {
enum mi_trace_type type;
union {
struct mi_trace_req* req;
str *rpl;
} d;
} mi_tparam;
};

extern struct mi_trace_param mi_tparam;

void try_load_trace_api(void);

Expand Down
2 changes: 2 additions & 0 deletions modules/b2b_entities/b2b_entities.c
Expand Up @@ -71,6 +71,8 @@ static int b2b_update_period = 100;
int uac_auth_loaded;
str b2b_key_prefix = str_init("B2B");
int b2be_db_mode = WRITE_BACK;
b2b_table server_htable = NULL;
b2b_table client_htable = NULL;

#define DB_COLS_NO 26

Expand Down
4 changes: 2 additions & 2 deletions modules/b2b_entities/dlg.h
Expand Up @@ -178,8 +178,8 @@ typedef struct b2b_rpl_data


/** Hash table declaration: for client and server dialogs */
b2b_table server_htable;
b2b_table client_htable;
extern b2b_table server_htable;
extern b2b_table client_htable;


void print_b2b_dlg(b2b_dlg_t *dlg);
Expand Down
2 changes: 1 addition & 1 deletion modules/b2b_logic/b2b_logic.h
Expand Up @@ -111,7 +111,7 @@ extern b2b_scenario_t* extern_scenaries;

extern str custom_headers_lst[HDR_LST_LEN];
extern regex_t* custom_headers_re;
int custom_headers_lst_len;
extern int custom_headers_lst_len;
extern int use_init_sdp;
extern str server_address;
extern unsigned int max_duration;
Expand Down
4 changes: 2 additions & 2 deletions modules/cachedb_local/cachedb_local_replication.h
Expand Up @@ -34,10 +34,10 @@ extern struct clusterer_binds clusterer_api;
extern str cache_repl_cap;
extern int cluster_id;

enum cachedb_rr_persist {
typedef enum cachedb_rr_persist {
RRP_NONE,
RRP_SYNC_FROM_CLUSTER,
} rr_persist_t;
} cachedb_rr_persist_t;

void receive_binary_packet(bin_packet_t *packet);
void receive_cluster_event(enum clusterer_event ev, int node_id);
Expand Down
2 changes: 1 addition & 1 deletion modules/dispatcher/dispatch.h
Expand Up @@ -177,7 +177,7 @@ extern str ds_setid_pvname;
extern pv_spec_t ds_setid_pv;

/* Structure containing pointers to TM-functions */
struct tm_binds tmb;
extern struct tm_binds tmb;

extern struct fs_binds fs_api;
extern str ds_ping_method;
Expand Down
21 changes: 21 additions & 0 deletions modules/emergency/emergency_methods.c
Expand Up @@ -50,7 +50,28 @@ static void mod_destroy(void);
struct dlg_binds dlgb;
struct rr_binds rr_api;

struct tm_binds eme_tm;

str db_url;
str *db_table = NULL;
db_func_t db_funcs;
db_con_t *db_con = NULL;

struct esrn_routing **db_esrn_esgwri = NULL;
struct service_provider **db_service_provider = NULL;

str callid_aux;
char* url_vpc;

int emet_size = 0;
int subst_size = 0;

char *empty = NULL;

char* mandatory_parm = NULL;

struct call_htable* call_htable = NULL;
struct subs_htable* subs_htable = NULL;

/*
* Exported functions
Expand Down
2 changes: 1 addition & 1 deletion modules/emergency/emergency_methods.h
Expand Up @@ -140,7 +140,7 @@ struct code_number *codes = NULL;

struct multi_body *mbody;
struct esct *call_cell;
struct lump *l;
extern struct lump *l;

int timer_interval=10;
str table_name=str_init("emergency_routing");
Expand Down
14 changes: 7 additions & 7 deletions modules/emergency/http_emergency.h
Expand Up @@ -59,15 +59,15 @@

#include "post_curl.h"

struct call_htable* call_htable;
struct subs_htable* subs_htable;
extern struct call_htable* call_htable;
extern struct subs_htable* subs_htable;

char *url_vpc;
str db_url;
str *db_table;
extern char *url_vpc;
extern str db_url;
extern str *db_table;

int emet_size;
int subst_size;
extern int emet_size;
extern int subst_size;

int send_esct(struct sip_msg *msg, str callid_ori, str from_tag);
int treat_parse_esrResponse(struct sip_msg *msg, ESCT *call_cell, PARSED *parsed, int proxy_role);
Expand Down
10 changes: 5 additions & 5 deletions modules/emergency/report_emergency.h
Expand Up @@ -57,8 +57,8 @@

#include "sip_emergency.h"

db_func_t db_funcs;
db_con_t *db_con;
extern db_func_t db_funcs;
extern db_con_t *db_con;

struct emergency_report {
str callid;
Expand All @@ -83,7 +83,7 @@ struct esrn_routing {
struct esrn_routing *next;
};

struct esrn_routing **db_esrn_esgwri;
extern struct esrn_routing **db_esrn_esgwri;

struct service_provider {
str nodeIP;
Expand All @@ -97,9 +97,9 @@ struct service_provider {
struct service_provider *next;
};

struct service_provider **db_service_provider;
extern struct service_provider **db_service_provider;

char* mandatory_parm;
extern char* mandatory_parm;

#define ACK_TIME 3
#define BYE_TIME 10
Expand Down
2 changes: 1 addition & 1 deletion modules/emergency/sip_emergency.c
Expand Up @@ -74,7 +74,7 @@ const char *FROMTAG_PARAM = ";from-tag=";


struct lump *l;
struct rr_binds rr_api;
//struct rr_binds rr_api;

/* verify if the INVITE has the header Geolocation-Routing with the value "yes"
*/
Expand Down
2 changes: 1 addition & 1 deletion modules/emergency/subscriber_emergency.h
Expand Up @@ -61,7 +61,7 @@
#define TIMER_N 132 // Timer N = 64*T1 T1 = (0,5s)
#define MAXNUMBERLEN 31

struct tm_binds eme_tm;
extern struct tm_binds eme_tm;

struct parms_cb{
str callid_ori;
Expand Down
2 changes: 1 addition & 1 deletion modules/emergency/xml_parser.h
Expand Up @@ -56,7 +56,7 @@
#include "../rr/api.h"
#include "../tm/tm_load.h" /*load_tm_api*/

char *empty;
extern char *empty;
#define MAX_TIME_SIZE 80
#define MAX_DISPOSITION_SIZE 20

Expand Down
1 change: 0 additions & 1 deletion modules/event_rabbitmq/rabbitmq_send.c
Expand Up @@ -43,7 +43,6 @@
#endif

unsigned rmq_sync_mode = 0;
struct timeval conn_timeout_tv;

/* used to communicate with the sending process */
static int rmq_pipe[2];
Expand Down
5 changes: 2 additions & 3 deletions modules/mangler/mangler.c
Expand Up @@ -52,9 +52,8 @@ struct tm_binds tmb;

#endif




regex_t *portExpression = NULL;
regex_t *ipExpression = NULL;

/*
* Module destroy function prototype
Expand Down
4 changes: 2 additions & 2 deletions modules/mangler/sdp_mangler.h
Expand Up @@ -63,8 +63,8 @@ from the last group



regex_t *portExpression;
regex_t *ipExpression;
extern regex_t *portExpression;
extern regex_t *ipExpression;



Expand Down
2 changes: 1 addition & 1 deletion modules/permissions/permissions.h
Expand Up @@ -66,7 +66,7 @@ typedef struct int_or_pvar {
#define DISABLE_CACHE 0
#define ENABLE_CACHE 1

char *allow_suffix;
extern char *allow_suffix;
int allow_test(char *file, char *uri, char *contact);

#endif
1 change: 1 addition & 0 deletions modules/pua_dialoginfo/pua_dialoginfo.c
Expand Up @@ -83,6 +83,7 @@ static int osips_ps = 1;
static int publish_on_trying = 0;
static int nopublish_flag = -1;
static char *nopublish_flag_str = 0;
send_publish_t pua_send_publish = NULL;



Expand Down
3 changes: 1 addition & 2 deletions modules/pua_dialoginfo/pua_dialoginfo.h
Expand Up @@ -30,8 +30,7 @@ struct dlginfo_part {
str display;
};


send_publish_t pua_send_publish;
extern send_publish_t pua_send_publish;

void dialog_publish(char *state,
struct dlginfo_part* entity, struct dlginfo_part *peer,
Expand Down
3 changes: 2 additions & 1 deletion modules/pua_usrloc/pua_usrloc.c
Expand Up @@ -44,7 +44,8 @@
#include "../pua/pua_bind.h"
#include "pua_usrloc.h"


send_publish_t pua_send_publish = NULL;
send_subscribe_t pua_send_subscribe = NULL;

str default_domain= {NULL, 0};
pua_api_t pua;
Expand Down
4 changes: 2 additions & 2 deletions modules/pua_usrloc/pua_usrloc.h
Expand Up @@ -24,8 +24,8 @@
#define _PUA_UL_
#include "../pua/pua_bind.h"

send_publish_t pua_send_publish;
send_subscribe_t pua_send_subscribe;
extern send_publish_t pua_send_publish;
extern send_subscribe_t pua_send_subscribe;
void ul_contact_publish(void *binding, ul_cb_type type);
int pua_set_publish(struct sip_msg* , char*, char*);

Expand Down
3 changes: 0 additions & 3 deletions modules/ratelimit/ratelimit_helper.c
Expand Up @@ -55,9 +55,6 @@ static rl_algo_t get_rl_algo(str);
/* big hash table */
rl_big_htable rl_htable;

/* feedback algorithm */
int *rl_feedback_limit;

static cachedb_funcs cdbf;
static cachedb_con *cdbc = 0;

Expand Down
1 change: 1 addition & 0 deletions modules/registrar/reg_mod.c
Expand Up @@ -114,6 +114,7 @@ char* attr_avp_param = 0;
unsigned short attr_avp_type = 0;
int attr_avp_name;

usrloc_api_t ul;

int reg_use_domain = 0;
/*!< Realm prefix to be removed */
Expand Down
2 changes: 1 addition & 1 deletion modules/registrar/reg_mod.h
Expand Up @@ -67,7 +67,7 @@ extern int max_aor_len;
extern int retry_after;
extern str sock_hdr_name;

usrloc_api_t ul; /*!< Structure containing pointers to usrloc functions */
extern usrloc_api_t ul; /*!< Structure containing pointers to usrloc functions */

extern struct sig_binds sigb;
extern struct tm_binds tmb;
Expand Down
6 changes: 3 additions & 3 deletions modules/usrloc/ul_mod.h
Expand Up @@ -44,7 +44,7 @@ extern enum ul_sql_write_mode sql_wmode;
extern enum ul_pinging_mode pinging_mode;

/* manner in which node data should be restored (or not) following a restart */
enum ul_rr_persist {
typedef enum ul_rr_persist {
RRP_NONE,
RRP_LOAD_FROM_SQL,
RRP_SYNC_FROM_CLUSTER,
Expand All @@ -53,14 +53,14 @@ enum ul_rr_persist {

/* if using SQL for restart persistency,
* should runtime SQL blocking writes be performed eagerly or lazily? */
enum ul_sql_write_mode {
typedef enum ul_sql_write_mode {
SQL_NO_WRITE,
SQL_WRITE_THROUGH,
SQL_WRITE_BACK,
} ul_sql_write_mode_t;
#define bad_sql_write_mode(wm) ((wm) < SQL_NO_WRITE || (wm) > SQL_WRITE_BACK)

enum ul_pinging_mode {
typedef enum ul_pinging_mode {
PMD_OWNERSHIP,
PMD_COOPERATION,
} ul_pinging_mode_t;
Expand Down
2 changes: 1 addition & 1 deletion modules/usrloc/usrloc.h
Expand Up @@ -36,7 +36,7 @@
#include "ul_callback.h"
#include "ul_dbg.h"

enum ul_cluster_mode {
typedef enum ul_cluster_mode {
CM_NONE,
CM_FEDERATION,
CM_FEDERATION_CACHEDB,
Expand Down
1 change: 0 additions & 1 deletion obsolete_modules/sms/libsms_modem.c
Expand Up @@ -35,7 +35,6 @@ mailto:s.frings@mail.isis.de
#define optz(_n,_l) (buf+buf_len-(((_n)+(_l)>buf_len)?buf_len:(_n)+(_l)))

/* global variables */
int sms_report_type;
cds_report cds_report_func;


Expand Down
2 changes: 0 additions & 2 deletions obsolete_modules/sms/libsms_putsms.c
Expand Up @@ -25,8 +25,6 @@ mailto:s.frings@mail.isis.de
#include "libsms_modem.h"


int sms_report_type;

static char hexa[16] = {
'0','1','2','3','4','5','6','7',
'8','9','A','B','C','D','E','F'
Expand Down
4 changes: 0 additions & 4 deletions obsolete_modules/sms/sms_funcs.c
Expand Up @@ -55,10 +55,6 @@ struct network networks[MAX_NETWORKS];
int net_pipes_in[MAX_NETWORKS];
int nr_of_networks;
int nr_of_modems;
int *queued_msgs;
int use_contact;
int sms_report_type;
struct tm_binds tmb;


#define ERR_NUMBER_TEXT " is an invalid number! Please resend your SMS "\
Expand Down
2 changes: 1 addition & 1 deletion sr_module.h
Expand Up @@ -191,7 +191,7 @@ struct module_exports{

void set_mpath(const char *new_mpath);

struct sr_module* modules; /*!< global module list*/
extern struct sr_module* modules; /*!< global module list*/

int register_builtin_modules();
int register_module(struct module_exports*, char*, void*);
Expand Down

0 comments on commit d986b8c

Please sign in to comment.