diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-08-16 10:11:44 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-08-16 10:11:44 +0000 |
commit | 159bce8846c6ad6a801085814ce456b13d90b395 (patch) | |
tree | 610f6d100a384dfee5957d2d9454fa893d094400 /pjsip/src/pjsip-simple/evsub_msg.c | |
parent | e98db7abda0bea7e779ab589753aaa3b9b3f148b (diff) |
Ticket #354: continuing work to port the Symbian libraries to .DSO format
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1417 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsip-simple/evsub_msg.c')
-rw-r--r-- | pjsip/src/pjsip-simple/evsub_msg.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/pjsip/src/pjsip-simple/evsub_msg.c b/pjsip/src/pjsip-simple/evsub_msg.c index 467345d9..19058b15 100644 --- a/pjsip/src/pjsip-simple/evsub_msg.c +++ b/pjsip/src/pjsip-simple/evsub_msg.c @@ -61,6 +61,7 @@ static int pjsip_event_hdr_print( pjsip_event_hdr *hdr, char *p = buf; char *endbuf = buf+size; int printed; + const pjsip_parser_const_t *pc = pjsip_parser_const(); copy_advance(p, hdr->name); *p++ = ':'; @@ -70,8 +71,8 @@ static int pjsip_event_hdr_print( pjsip_event_hdr *hdr, copy_advance_pair(p, ";id=", 4, hdr->id_param); printed = pjsip_param_print_on(&hdr->other_param, p, endbuf-p, - &pjsip_TOKEN_SPEC, - &pjsip_TOKEN_SPEC, ';'); + &pc->pjsip_TOKEN_SPEC, + &pc->pjsip_TOKEN_SPEC, ';'); if (printed < 0) return printed; @@ -159,6 +160,7 @@ static int pjsip_sub_state_hdr_print(pjsip_sub_state_hdr *hdr, char *p = buf; char *endbuf = buf+size; int printed; + const pjsip_parser_const_t *pc = pjsip_parser_const(); copy_advance(p, hdr->name); *p++ = ':'; @@ -180,8 +182,8 @@ static int pjsip_sub_state_hdr_print(pjsip_sub_state_hdr *hdr, } printed = pjsip_param_print_on( &hdr->other_param, p, endbuf-p, - &pjsip_TOKEN_SPEC, - &pjsip_TOKEN_SPEC, + &pc->pjsip_TOKEN_SPEC, + &pc->pjsip_TOKEN_SPEC, ';'); if (printed < 0) return printed; @@ -222,8 +224,9 @@ static pjsip_hdr *parse_hdr_event(pjsip_parse_ctx *ctx) { pjsip_event_hdr *hdr = pjsip_event_hdr_create(ctx->pool); const pj_str_t id_param = { "id", 2 }; + const pjsip_parser_const_t *pc = pjsip_parser_const(); - pj_scan_get(ctx->scanner, &pjsip_TOKEN_SPEC, &hdr->event_type); + pj_scan_get(ctx->scanner, &pc->pjsip_TOKEN_SPEC, &hdr->event_type); while (*ctx->scanner->curptr == ';') { pj_str_t pname, pvalue; @@ -253,7 +256,9 @@ static pjsip_hdr* parse_hdr_sub_state( pjsip_parse_ctx *ctx ) const pj_str_t reason = { "reason", 6 }, expires = { "expires", 7 }, retry_after = { "retry-after", 11 }; - pj_scan_get(ctx->scanner, &pjsip_TOKEN_SPEC, &hdr->sub_state); + const pjsip_parser_const_t *pc = pjsip_parser_const(); + + pj_scan_get(ctx->scanner, &pc->pjsip_TOKEN_SPEC, &hdr->sub_state); while (*ctx->scanner->curptr == ';') { pj_str_t pname, pvalue; |