Ignore:
Timestamp:
May 2, 2007 5:14:29 AM (17 years ago)
Author:
bennylp
Message:

Ported PJSIP and PJSIP-SIMPLE to Symbian

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_ua_layer.c

    r989 r1241  
    166166 
    167167    /* Get the dialog where this transaction belongs. */ 
    168     dlg = tsx->mod_data[mod_ua.mod.id]; 
     168    dlg = (pjsip_dialog*) tsx->mod_data[mod_ua.mod.id]; 
    169169     
    170170    /* If dialog instance has gone, it could mean that the dialog 
     
    245245 
    246246    set_key->slen = call_id->slen + local_tag->slen + 1; 
    247     set_key->ptr = pj_pool_alloc(pool, set_key->slen); 
     247    set_key->ptr = (char*) pj_pool_alloc(pool, set_key->slen); 
    248248    pj_assert(set_key->ptr != NULL); 
    249249 
     
    268268        return set; 
    269269    } else { 
    270         set = pj_pool_alloc(mod_ua.pool, sizeof(struct dlg_set)); 
     270        set = PJ_POOL_ALLOC_T(mod_ua.pool, struct dlg_set); 
    271271        return set; 
    272272    } 
     
    299299        struct dlg_set *dlg_set; 
    300300 
    301         dlg_set = pj_hash_get( mod_ua.dlg_table, dlg->local.info->tag.ptr,  
     301        dlg_set = (struct dlg_set*) 
     302                  pj_hash_get( mod_ua.dlg_table, dlg->local.info->tag.ptr,  
    302303                               dlg->local.info->tag.slen, 
    303304                               &dlg->local.tag_hval); 
     
    367368 
    368369    /* Find this dialog from the dialog set. */ 
    369     dlg_set = dlg->dlg_set; 
     370    dlg_set = (struct dlg_set*) dlg->dlg_set; 
    370371    d = dlg_set->dlg_list.next; 
    371372    while (d != (pjsip_dialog*)&dlg_set->dlg_list && d != dlg) { 
     
    401402PJ_DEF(pjsip_dialog*) pjsip_rdata_get_dlg( pjsip_rx_data *rdata ) 
    402403{ 
    403     return rdata->endpt_info.mod_data[mod_ua.mod.id]; 
     404    return (pjsip_dialog*) rdata->endpt_info.mod_data[mod_ua.mod.id]; 
    404405} 
    405406 
    406407PJ_DEF(pjsip_dialog*) pjsip_tsx_get_dlg( pjsip_transaction *tsx ) 
    407408{ 
    408     return tsx->mod_data[mod_ua.mod.id]; 
     409    return (pjsip_dialog*) tsx->mod_data[mod_ua.mod.id]; 
    409410} 
    410411 
     
    427428 
    428429    /* Lookup the dialog set. */ 
    429     dlg_set = pj_hash_get(mod_ua.dlg_table, local_tag->ptr, local_tag->slen, 
     430    dlg_set = (struct dlg_set*) 
     431              pj_hash_get(mod_ua.dlg_table, local_tag->ptr, local_tag->slen, 
    430432                          NULL); 
    431433    if (dlg_set == NULL) { 
     
    517519        /* We should find the dialog attached to the INVITE transaction */ 
    518520        if (tsx) { 
    519             dlg = tsx->mod_data[mod_ua.mod.id]; 
     521            dlg = (pjsip_dialog*) tsx->mod_data[mod_ua.mod.id]; 
    520522            pj_mutex_unlock(tsx->mutex); 
    521523 
     
    523525             * (e.g. during debugging where initially there is a dialog) 
    524526             */ 
    525             return dlg ? dlg->dlg_set : NULL; 
     527            return dlg ? (struct dlg_set*) dlg->dlg_set : NULL; 
    526528 
    527529        } else { 
     
    540542 
    541543        /* Lookup the dialog set. */ 
    542         dlg_set = pj_hash_get(mod_ua.dlg_table, tag->ptr, tag->slen, NULL); 
     544        dlg_set = (struct dlg_set*) 
     545                  pj_hash_get(mod_ua.dlg_table, tag->ptr, tag->slen, NULL); 
    543546        return dlg_set; 
    544547    } 
     
    705708 
    706709        /* Get the dialog set. */ 
    707         dlg_set = dlg->dlg_set; 
     710        dlg_set = (struct dlg_set*) dlg->dlg_set; 
    708711 
    709712        /* Even if transaction is found and (candidate) dialog has been  
     
    733736 
    734737        /* Get the dialog set. */ 
    735         dlg_set = pj_hash_get(mod_ua.dlg_table,  
     738        dlg_set = (struct dlg_set*) 
     739                  pj_hash_get(mod_ua.dlg_table,  
    736740                              rdata->msg_info.from->tag.ptr, 
    737741                              rdata->msg_info.from->tag.slen, 
     
    918922            const char *title; 
    919923 
    920             dlg_set = pj_hash_this(mod_ua.dlg_table, it); 
     924            dlg_set = (struct dlg_set*) pj_hash_this(mod_ua.dlg_table, it); 
    921925            if (!dlg_set || pj_list_empty(&dlg_set->dlg_list)) continue; 
    922926 
Note: See TracChangeset for help on using the changeset viewer.