Changeset 3337 for pjproject/trunk/pjsip/src/pjsip-simple/presence_body.c
- Timestamp:
- Oct 12, 2010 11:35:55 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/presence_body.c
r3255 r3337 200 200 pjsip_pres_status *pres_status) 201 201 { 202 return pjsip_pres_parse_pidf2((char*)rdata->msg_info.msg->body->data, 203 rdata->msg_info.msg->body->len, 204 pool, pres_status); 205 } 206 207 PJ_DEF(pj_status_t) pjsip_pres_parse_pidf2(char *body, unsigned body_len, 208 pj_pool_t *pool, 209 pjsip_pres_status *pres_status) 210 { 202 211 pjpidf_pres *pidf; 203 212 pjpidf_tuple *pidf_tuple; 204 213 205 pidf = pjpidf_parse(rdata->tp_info.pool, 206 (char*)rdata->msg_info.msg->body->data, 207 rdata->msg_info.msg->body->len); 214 pidf = pjpidf_parse(pool, body, body_len); 208 215 if (pidf == NULL) 209 216 return PJSIP_SIMPLE_EBADPIDF; … … 252 259 pjsip_pres_status *pres_status) 253 260 { 261 return pjsip_pres_parse_xpidf2((char*)rdata->msg_info.msg->body->data, 262 rdata->msg_info.msg->body->len, 263 pool, pres_status); 264 } 265 266 PJ_DEF(pj_status_t) pjsip_pres_parse_xpidf2(char *body, unsigned body_len, 267 pj_pool_t *pool, 268 pjsip_pres_status *pres_status) 269 { 254 270 pjxpidf_pres *xpidf; 255 271 256 xpidf = pjxpidf_parse(rdata->tp_info.pool, 257 (char*)rdata->msg_info.msg->body->data, 258 rdata->msg_info.msg->body->len); 272 xpidf = pjxpidf_parse(pool, body, body_len); 259 273 if (xpidf == NULL) 260 274 return PJSIP_SIMPLE_EBADXPIDF;
Note: See TracChangeset
for help on using the changeset viewer.