Browse code

obsolete modules: replace STR_PARAM with PARAM_STRING. Blind replace

Alekzander Spiridonov authored on 29/07/2014 15:04:11 • Daniel-Constantin Mierla committed on 05/08/2014 10:48:31
Showing 3 changed files
... ...
@@ -55,7 +55,7 @@ static cmd_export_t cmds[] = {
55 55
  * Exported parameters
56 56
  */
57 57
 static param_export_t params[] = {
58
-	{"describe_table", STR_PARAM|USE_FUNC_PARAM, (void*)bdb_describe_table},
58
+	{"describe_table", PARAM_STRING|USE_FUNC_PARAM, (void*)bdb_describe_table},
59 59
 	{0, 0, 0}
60 60
 };
61 61
 
... ...
@@ -159,13 +159,13 @@ static cmd_export_t cmds[] = {
159 159
  * Exported parameters 
160 160
  */
161 161
 static param_export_t params[] = {
162
-	{"db_url",     STR_PARAM, &db_url.s  },
163
-	{"jaddress",   STR_PARAM, &jaddress  },
164
-	{"aliases",    STR_PARAM, &jaliases  },
165
-	{"proxy",      STR_PARAM, &proxy     },
166
-	{"jdomain",    STR_PARAM, &jdomain   },
167
-	{"registrar",  STR_PARAM, &registrar },
168
-	{"priority",   STR_PARAM, &priority  },
162
+	{"db_url",     PARAM_STRING, &db_url.s  },
163
+	{"jaddress",   PARAM_STRING, &jaddress  },
164
+	{"aliases",    PARAM_STRING, &jaliases  },
165
+	{"proxy",      PARAM_STRING, &proxy     },
166
+	{"jdomain",    PARAM_STRING, &jdomain   },
167
+	{"registrar",  PARAM_STRING, &registrar },
168
+	{"priority",   PARAM_STRING, &priority  },
169 169
 	{"jport",      INT_PARAM, &jport     },
170 170
 	{"workers",    INT_PARAM, &nrw       },
171 171
 	{"max_jobs",   INT_PARAM, &max_jobs  },
... ...
@@ -90,22 +90,22 @@ static cmd_export_t cmds[]={
90 90
 };
91 91
 
92 92
 static param_export_t params[]={
93
-    {"sp1_uri",                        STR_PARAM, &_osp_sp_uris[0]},
94
-    {"sp2_uri",                        STR_PARAM, &_osp_sp_uris[1]},
95
-    {"sp3_uri",                        STR_PARAM, &_osp_sp_uris[2]},
96
-    {"sp4_uri",                        STR_PARAM, &_osp_sp_uris[3]},
97
-    {"sp5_uri",                        STR_PARAM, &_osp_sp_uris[4]},
98
-    {"sp6_uri",                        STR_PARAM, &_osp_sp_uris[5]},
99
-    {"sp7_uri",                        STR_PARAM, &_osp_sp_uris[6]},
100
-    {"sp8_uri",                        STR_PARAM, &_osp_sp_uris[7]},
101
-    {"sp9_uri",                        STR_PARAM, &_osp_sp_uris[8]},
102
-    {"sp10_uri",                       STR_PARAM, &_osp_sp_uris[9]},
103
-    {"sp11_uri",                       STR_PARAM, &_osp_sp_uris[10]},
104
-    {"sp12_uri",                       STR_PARAM, &_osp_sp_uris[11]},
105
-    {"sp13_uri",                       STR_PARAM, &_osp_sp_uris[12]},
106
-    {"sp14_uri",                       STR_PARAM, &_osp_sp_uris[13]},
107
-    {"sp15_uri",                       STR_PARAM, &_osp_sp_uris[14]},
108
-    {"sp16_uri",                       STR_PARAM, &_osp_sp_uris[15]},
93
+    {"sp1_uri",                        PARAM_STRING, &_osp_sp_uris[0]},
94
+    {"sp2_uri",                        PARAM_STRING, &_osp_sp_uris[1]},
95
+    {"sp3_uri",                        PARAM_STRING, &_osp_sp_uris[2]},
96
+    {"sp4_uri",                        PARAM_STRING, &_osp_sp_uris[3]},
97
+    {"sp5_uri",                        PARAM_STRING, &_osp_sp_uris[4]},
98
+    {"sp6_uri",                        PARAM_STRING, &_osp_sp_uris[5]},
99
+    {"sp7_uri",                        PARAM_STRING, &_osp_sp_uris[6]},
100
+    {"sp8_uri",                        PARAM_STRING, &_osp_sp_uris[7]},
101
+    {"sp9_uri",                        PARAM_STRING, &_osp_sp_uris[8]},
102
+    {"sp10_uri",                       PARAM_STRING, &_osp_sp_uris[9]},
103
+    {"sp11_uri",                       PARAM_STRING, &_osp_sp_uris[10]},
104
+    {"sp12_uri",                       PARAM_STRING, &_osp_sp_uris[11]},
105
+    {"sp13_uri",                       PARAM_STRING, &_osp_sp_uris[12]},
106
+    {"sp14_uri",                       PARAM_STRING, &_osp_sp_uris[13]},
107
+    {"sp15_uri",                       PARAM_STRING, &_osp_sp_uris[14]},
108
+    {"sp16_uri",                       PARAM_STRING, &_osp_sp_uris[15]},
109 109
     {"sp1_weight",                     INT_PARAM, &(_osp_sp_weights[0])},
110 110
     {"sp2_weight",                     INT_PARAM, &(_osp_sp_weights[1])},
111 111
     {"sp3_weight",                     INT_PARAM, &(_osp_sp_weights[2])},
... ...
@@ -122,11 +122,11 @@ static param_export_t params[]={
122 122
     {"sp14_weight",                    INT_PARAM, &(_osp_sp_weights[13])},
123 123
     {"sp15_weight",                    INT_PARAM, &(_osp_sp_weights[14])},
124 124
     {"sp16_weight",                    INT_PARAM, &(_osp_sp_weights[15])},
125
-    {"device_ip",                      STR_PARAM, &_osp_device_ip},
126
-    {"device_port",                    STR_PARAM, &_osp_device_port},
127
-    {"private_key",                    STR_PARAM, &_osp_private_key},
128
-    {"local_certificate",              STR_PARAM, &_osp_local_certificate},
129
-    {"ca_certificates",                STR_PARAM, &_osp_ca_certificate},
125
+    {"device_ip",                      PARAM_STRING, &_osp_device_ip},
126
+    {"device_port",                    PARAM_STRING, &_osp_device_port},
127
+    {"private_key",                    PARAM_STRING, &_osp_private_key},
128
+    {"local_certificate",              PARAM_STRING, &_osp_local_certificate},
129
+    {"ca_certificates",                PARAM_STRING, &_osp_ca_certificate},
130 130
     {"enable_crypto_hardware_support", INT_PARAM, &_osp_crypto_hw},
131 131
     {"validate_callid",                INT_PARAM, &(_osp_validate_callid)},
132 132
     {"token_format",                   INT_PARAM, &_osp_token_format},