Prechádzať zdrojové kódy

obsolete modules: replace STR_PARAM with PARAM_STRING. Blind replace

Alekzander Spiridonov 11 rokov pred
rodič
commit
4d23bafa1b
3 zmenil súbory, kde vykonal 29 pridanie a 29 odobranie
  1. 1 1
      obsolete/bdb/bdb.c
  2. 7 7
      obsolete/jabber_k/jabber.c
  3. 21 21
      obsolete/osp/osp_mod.c

+ 1 - 1
obsolete/bdb/bdb.c

@@ -55,7 +55,7 @@ static cmd_export_t cmds[] = {
  * Exported parameters
  */
 static param_export_t params[] = {
-	{"describe_table", STR_PARAM|USE_FUNC_PARAM, (void*)bdb_describe_table},
+	{"describe_table", PARAM_STRING|USE_FUNC_PARAM, (void*)bdb_describe_table},
 	{0, 0, 0}
 };
 

+ 7 - 7
obsolete/jabber_k/jabber.c

@@ -159,13 +159,13 @@ static cmd_export_t cmds[] = {
  * Exported parameters 
  */
 static param_export_t params[] = {
-	{"db_url",     STR_PARAM, &db_url.s  },
-	{"jaddress",   STR_PARAM, &jaddress  },
-	{"aliases",    STR_PARAM, &jaliases  },
-	{"proxy",      STR_PARAM, &proxy     },
-	{"jdomain",    STR_PARAM, &jdomain   },
-	{"registrar",  STR_PARAM, &registrar },
-	{"priority",   STR_PARAM, &priority  },
+	{"db_url",     PARAM_STRING, &db_url.s  },
+	{"jaddress",   PARAM_STRING, &jaddress  },
+	{"aliases",    PARAM_STRING, &jaliases  },
+	{"proxy",      PARAM_STRING, &proxy     },
+	{"jdomain",    PARAM_STRING, &jdomain   },
+	{"registrar",  PARAM_STRING, &registrar },
+	{"priority",   PARAM_STRING, &priority  },
 	{"jport",      INT_PARAM, &jport     },
 	{"workers",    INT_PARAM, &nrw       },
 	{"max_jobs",   INT_PARAM, &max_jobs  },

+ 21 - 21
obsolete/osp/osp_mod.c

@@ -90,22 +90,22 @@ static cmd_export_t cmds[]={
 };
 
 static param_export_t params[]={
-    {"sp1_uri",                        STR_PARAM, &_osp_sp_uris[0]},
-    {"sp2_uri",                        STR_PARAM, &_osp_sp_uris[1]},
-    {"sp3_uri",                        STR_PARAM, &_osp_sp_uris[2]},
-    {"sp4_uri",                        STR_PARAM, &_osp_sp_uris[3]},
-    {"sp5_uri",                        STR_PARAM, &_osp_sp_uris[4]},
-    {"sp6_uri",                        STR_PARAM, &_osp_sp_uris[5]},
-    {"sp7_uri",                        STR_PARAM, &_osp_sp_uris[6]},
-    {"sp8_uri",                        STR_PARAM, &_osp_sp_uris[7]},
-    {"sp9_uri",                        STR_PARAM, &_osp_sp_uris[8]},
-    {"sp10_uri",                       STR_PARAM, &_osp_sp_uris[9]},
-    {"sp11_uri",                       STR_PARAM, &_osp_sp_uris[10]},
-    {"sp12_uri",                       STR_PARAM, &_osp_sp_uris[11]},
-    {"sp13_uri",                       STR_PARAM, &_osp_sp_uris[12]},
-    {"sp14_uri",                       STR_PARAM, &_osp_sp_uris[13]},
-    {"sp15_uri",                       STR_PARAM, &_osp_sp_uris[14]},
-    {"sp16_uri",                       STR_PARAM, &_osp_sp_uris[15]},
+    {"sp1_uri",                        PARAM_STRING, &_osp_sp_uris[0]},
+    {"sp2_uri",                        PARAM_STRING, &_osp_sp_uris[1]},
+    {"sp3_uri",                        PARAM_STRING, &_osp_sp_uris[2]},
+    {"sp4_uri",                        PARAM_STRING, &_osp_sp_uris[3]},
+    {"sp5_uri",                        PARAM_STRING, &_osp_sp_uris[4]},
+    {"sp6_uri",                        PARAM_STRING, &_osp_sp_uris[5]},
+    {"sp7_uri",                        PARAM_STRING, &_osp_sp_uris[6]},
+    {"sp8_uri",                        PARAM_STRING, &_osp_sp_uris[7]},
+    {"sp9_uri",                        PARAM_STRING, &_osp_sp_uris[8]},
+    {"sp10_uri",                       PARAM_STRING, &_osp_sp_uris[9]},
+    {"sp11_uri",                       PARAM_STRING, &_osp_sp_uris[10]},
+    {"sp12_uri",                       PARAM_STRING, &_osp_sp_uris[11]},
+    {"sp13_uri",                       PARAM_STRING, &_osp_sp_uris[12]},
+    {"sp14_uri",                       PARAM_STRING, &_osp_sp_uris[13]},
+    {"sp15_uri",                       PARAM_STRING, &_osp_sp_uris[14]},
+    {"sp16_uri",                       PARAM_STRING, &_osp_sp_uris[15]},
     {"sp1_weight",                     INT_PARAM, &(_osp_sp_weights[0])},
     {"sp2_weight",                     INT_PARAM, &(_osp_sp_weights[1])},
     {"sp3_weight",                     INT_PARAM, &(_osp_sp_weights[2])},
@@ -122,11 +122,11 @@ static param_export_t params[]={
     {"sp14_weight",                    INT_PARAM, &(_osp_sp_weights[13])},
     {"sp15_weight",                    INT_PARAM, &(_osp_sp_weights[14])},
     {"sp16_weight",                    INT_PARAM, &(_osp_sp_weights[15])},
-    {"device_ip",                      STR_PARAM, &_osp_device_ip},
-    {"device_port",                    STR_PARAM, &_osp_device_port},
-    {"private_key",                    STR_PARAM, &_osp_private_key},
-    {"local_certificate",              STR_PARAM, &_osp_local_certificate},
-    {"ca_certificates",                STR_PARAM, &_osp_ca_certificate},
+    {"device_ip",                      PARAM_STRING, &_osp_device_ip},
+    {"device_port",                    PARAM_STRING, &_osp_device_port},
+    {"private_key",                    PARAM_STRING, &_osp_private_key},
+    {"local_certificate",              PARAM_STRING, &_osp_local_certificate},
+    {"ca_certificates",                PARAM_STRING, &_osp_ca_certificate},
     {"enable_crypto_hardware_support", INT_PARAM, &_osp_crypto_hw},
     {"validate_callid",                INT_PARAM, &(_osp_validate_callid)},
     {"token_format",                   INT_PARAM, &_osp_token_format},