Browse code

dispatcher: rename internal functions to match the module pattern

Daniel-Constantin Mierla authored on 29/11/2018 16:34:42
Showing 3 changed files
... ...
@@ -213,7 +213,7 @@ int ds_log_sets(void)
213 213
 /**
214 214
  *
215 215
  */
216
-int init_data(void)
216
+int ds_init_data(void)
217 217
 {
218 218
 	int *p;
219 219
 
... ...
@@ -864,7 +864,7 @@ void ds_disconnect_db(void)
864 864
 }
865 865
 
866 866
 /*! \brief Initialize and verify DB stuff*/
867
-int init_ds_db(void)
867
+int ds_init_db(void)
868 868
 {
869 869
 	int ret;
870 870
 
... ...
@@ -114,8 +114,8 @@ extern str ds_outbound_proxy;
114 114
 extern str ds_default_socket;
115 115
 extern struct socket_info *ds_default_sockinfo;
116 116
 
117
-int init_data(void);
118
-int init_ds_db(void);
117
+int ds_init_data(void);
118
+int ds_init_db(void);
119 119
 int ds_load_list(char *lfile);
120 120
 int ds_connect_db(void);
121 121
 void ds_disconnect_db(void);
... ...
@@ -349,7 +349,7 @@ static int mod_init(void)
349 349
 				ds_default_socket.len, ds_default_socket.s);
350 350
 	}
351 351
 
352
-	if(init_data() != 0)
352
+	if(ds_init_data() != 0)
353 353
 		return -1;
354 354
 
355 355
 	if(ds_db_url.s) {
... ...
@@ -369,7 +369,7 @@ static int mod_init(void)
369 369
 				}
370 370
 			}
371 371
 		}
372
-		if(init_ds_db() != 0) {
372
+		if(ds_init_db() != 0) {
373 373
 			LM_ERR("could not initiate a connect to the database\n");
374 374
 			return -1;
375 375
 		}