Changeset 1464
- Timestamp:
- Sep 30, 2007 6:06:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_100rel.c
r1463 r1464 87 87 88 88 /* List of pending transmission (may include the final response as well) */ 89 typedef struct tx_data_list 90 { 91 PJ_DECL_LIST_MEMBER(struct tx_data_list );89 typedef struct tx_data_list_t 90 { 91 PJ_DECL_LIST_MEMBER(struct tx_data_list_t); 92 92 pj_uint32_t rseq; 93 93 pjsip_tx_data *tdata; 94 } tx_data_list ;94 } tx_data_list_t; 95 95 96 96 … … 98 98 99 99 /* UAS state. */ 100 typedef struct uas_state 100 typedef struct uas_state_t 101 101 { 102 102 pj_int32_t cseq; 103 103 pj_uint32_t rseq; /* Initialized to -1 */ 104 104 pj_bool_t has_sdp; 105 tx_data_list tx_data_list;105 tx_data_list_t tx_data_list; 106 106 unsigned retransmit_count; 107 107 pj_timer_entry retransmit_timer; 108 } uas_state ;108 } uas_state_t; 109 109 110 110 111 111 /* UAC state */ 112 typedef struct uac_state 112 typedef struct uac_state_t 113 113 { 114 114 pj_int32_t cseq; 115 115 pj_uint32_t rseq; /* Initialized to -1 */ 116 } uac_state ;116 } uac_state_t; 117 117 118 118 … … 121 121 { 122 122 pjsip_inv_session *inv; 123 uas_state *uas_state;124 uac_state *uac_state;123 uas_state_t *uas_state; 124 uac_state_t *uac_state; 125 125 }; 126 126 … … 276 276 static void clear_all_responses(dlg_data *dd) 277 277 { 278 tx_data_list *tl;278 tx_data_list_t *tl; 279 279 280 280 tl = dd->uas_state->tx_data_list.next; … … 332 332 cseq == dd->uas_state->cseq) 333 333 { 334 tx_data_list *tl = dd->uas_state->tx_data_list.next;334 tx_data_list_t *tl = dd->uas_state->tx_data_list.next; 335 335 336 336 /* Yes it match! */ … … 405 405 if (dd->uac_state == NULL) { 406 406 dd->uac_state = PJ_POOL_ZALLOC_T(dd->inv->dlg->pool, 407 struct uac_state);407 uac_state_t); 408 408 dd->uac_state->cseq = rdata->msg_info.cseq->cseq; 409 409 dd->uac_state->rseq = rseq - 1; … … 449 449 (int)tsx->method.name.slen, 450 450 tsx->method.name.ptr); 451 PJ_ASSERT_ON_FAIL(rack.slen > 0 && rack.slen < sizeof(rack_buf),451 PJ_ASSERT_ON_FAIL(rack.slen > 0 && rack.slen < (int)sizeof(rack_buf), 452 452 { pjsip_tx_data_dec_ref(tdata); return; }); 453 453 rack_hdr = pjsip_generic_string_hdr_create(tdata->pool, &RACK, &rack); … … 500 500 { 501 501 dlg_data *dd; 502 tx_data_list *tl;502 tx_data_list_t *tl; 503 503 pjsip_tx_data *tdata; 504 504 pj_bool_t final; … … 600 600 hsrc = src->msg->hdr.next; 601 601 while (hsrc != &src->msg->hdr) { 602 pjsip_hdr *h = pjsip_hdr_clone(dst->pool, hsrc);602 pjsip_hdr *h = (pjsip_hdr*) pjsip_hdr_clone(dst->pool, hsrc); 603 603 pjsip_msg_add_hdr(msg, h); 604 604 hsrc = hsrc->next; … … 683 683 * In this case, must queue the 2xx response. 684 684 */ 685 tx_data_list *tl;686 687 tl = PJ_POOL_ZALLOC_T(tdata->pool, tx_data_list );685 tx_data_list_t *tl; 686 687 tl = PJ_POOL_ZALLOC_T(tdata->pool, tx_data_list_t); 688 688 tl->tdata = tdata; 689 689 tl->rseq = (pj_uint32_t)-1; … … 762 762 char rseq_str[32]; 763 763 pj_str_t rseq; 764 tx_data_list *tl;764 tx_data_list_t *tl; 765 765 766 766 /* Create UAS state if we don't have one */ 767 767 if (dd->uas_state == NULL) { 768 768 dd->uas_state = PJ_POOL_ZALLOC_T(inv->dlg->pool, 769 uas_state );769 uas_state_t); 770 770 dd->uas_state->cseq = cseq_hdr->cseq; 771 771 dd->uas_state->rseq = pj_rand() % 0x7FFF; … … 794 794 795 795 /* Create list entry for this response */ 796 tl = PJ_POOL_ZALLOC_T(tdata->pool, tx_data_list );796 tl = PJ_POOL_ZALLOC_T(tdata->pool, tx_data_list_t); 797 797 tl->tdata = tdata; 798 798 tl->rseq = dd->uas_state->rseq++;
Note: See TracChangeset
for help on using the changeset viewer.