Changeset 789 for pjproject/branches/symbian/pjsip/src/pjsip/sip_uri.c
- Timestamp:
- Oct 29, 2006 6:13:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/symbian/pjsip/src/pjsip/sip_uri.c
r127 r789 61 61 pj_list_init(dst_list); 62 62 while (p != src_list) { 63 pjsip_param *new_param = pj_pool_alloc(pool, sizeof(pjsip_param)); 63 pjsip_param *new_param = (pjsip_param *) 64 pj_pool_alloc(pool, sizeof(pjsip_param)); 64 65 pj_strdup(pool, &new_param->name, &p->name); 65 66 pj_strdup(pool, &new_param->value, &p->value); … … 78 79 pj_list_init(dst_list); 79 80 while (p != src_list) { 80 pjsip_param *new_param = pj_pool_alloc(pool, sizeof(pjsip_param)); 81 pjsip_param *new_param = (pjsip_param *) 82 pj_pool_alloc(pool, sizeof(pjsip_param)); 81 83 new_param->name = p->name; 82 84 new_param->value = p->value; … … 156 158 const pjsip_sip_uri *rhs); 157 159 160 typedef const pj_str_t* (*FGETSCHEME)(const void *uri); 161 typedef void* (*FGETURI)(void *uri); 162 typedef pj_ssize_t (*FPRINT)(pjsip_uri_context_e context, 163 const void *uri, 164 char *buf, pj_size_t size); 165 typedef pj_status_t (*FCOMPARE)(pjsip_uri_context_e context, 166 const void *uri1, const void *uri2); 167 typedef void *(*FCLONE)(pj_pool_t *pool, const void *uri); 168 169 158 170 static pjsip_uri_vptr sip_url_vptr = 159 171 { 160 HAPPY_FLAG&pjsip_url_get_scheme,161 HAPPY_FLAG&pjsip_get_uri,162 HAPPY_FLAG&pjsip_url_print,163 HAPPY_FLAG&pjsip_url_compare,164 HAPPY_FLAG&pjsip_url_clone172 (FGETSCHEME)&pjsip_url_get_scheme, 173 (FGETURI) &pjsip_get_uri, 174 (FPRINT) &pjsip_url_print, 175 (FCOMPARE) &pjsip_url_compare, 176 (FCLONE) &pjsip_url_clone 165 177 }; 166 178 167 179 static pjsip_uri_vptr sips_url_vptr = 168 180 { 169 HAPPY_FLAG&pjsips_url_get_scheme,170 HAPPY_FLAG&pjsip_get_uri,171 HAPPY_FLAG&pjsip_url_print,172 HAPPY_FLAG&pjsip_url_compare,173 HAPPY_FLAG&pjsip_url_clone181 (FGETSCHEME)&pjsips_url_get_scheme, 182 (FGETURI) &pjsip_get_uri, 183 (FPRINT) &pjsip_url_print, 184 (FCOMPARE) &pjsip_url_compare, 185 (FCLONE) &pjsip_url_clone 174 186 }; 175 187 176 188 static pjsip_uri_vptr name_addr_vptr = 177 189 { 178 HAPPY_FLAG&pjsip_name_addr_get_scheme,179 HAPPY_FLAG&pjsip_name_addr_get_uri,180 HAPPY_FLAG&pjsip_name_addr_print,181 HAPPY_FLAG&pjsip_name_addr_compare,182 HAPPY_FLAG&pjsip_name_addr_clone190 (FGETSCHEME)&pjsip_name_addr_get_scheme, 191 (FGETURI) &pjsip_name_addr_get_uri, 192 (FPRINT) &pjsip_name_addr_print, 193 (FCOMPARE) &pjsip_name_addr_compare, 194 (FCLONE) &pjsip_name_addr_clone 183 195 }; 184 196 … … 216 228 PJ_DEF(pjsip_sip_uri*) pjsip_sip_uri_create( pj_pool_t *pool, int secure ) 217 229 { 218 pjsip_sip_uri *url = pj_pool_alloc(pool, sizeof(pjsip_sip_uri));230 pjsip_sip_uri *url = (pjsip_sip_uri *)pj_pool_alloc(pool, sizeof(pjsip_sip_uri)); 219 231 pjsip_sip_uri_init(url, secure); 220 232 return url; … … 485 497 static pjsip_sip_uri* pjsip_url_clone(pj_pool_t *pool, const pjsip_sip_uri *rhs) 486 498 { 487 pjsip_sip_uri *url = pj_pool_alloc(pool, sizeof(pjsip_sip_uri));499 pjsip_sip_uri *url = (pjsip_sip_uri *)pj_pool_alloc(pool, sizeof(pjsip_sip_uri)); 488 500 if (!url) 489 501 return NULL; … … 509 521 PJ_DEF(pjsip_name_addr*) pjsip_name_addr_create(pj_pool_t *pool) 510 522 { 511 pjsip_name_addr *name_addr = pj_pool_alloc(pool, sizeof(pjsip_name_addr));523 pjsip_name_addr *name_addr = (pjsip_name_addr *)pj_pool_alloc(pool, sizeof(pjsip_name_addr)); 512 524 pjsip_name_addr_init(name_addr); 513 525 return name_addr; … … 552 564 { 553 565 pj_strdup( pool, &dst->display, &src->display); 554 dst->uri = pjsip_uri_clone(pool, src->uri);566 dst->uri = (pjsip_uri*)pjsip_uri_clone(pool, src->uri); 555 567 } 556 568 … … 558 570 const pjsip_name_addr *rhs) 559 571 { 560 pjsip_name_addr *addr = pj_pool_alloc(pool, sizeof(pjsip_name_addr));572 pjsip_name_addr *addr = (pjsip_name_addr *)pj_pool_alloc(pool, sizeof(pjsip_name_addr)); 561 573 if (!addr) 562 574 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.