Changeset 1317 for pjproject/trunk


Ignore:
Timestamp:
May 29, 2007 11:51:45 AM (18 years ago)
Author:
bennylp
Message:

Fixed Symbian (aka C++ mode) compilation error because of recent change in transport key in ticket #306 (thanks Esbjorn Dominique)

Location:
pjproject/trunk/pjsip/src
Files:
4 edited

Legend:

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

    r1266 r1317  
    831831        if (port == 0) { 
    832832            pjsip_transport_type_e type; 
    833             type = rdata->tp_info.transport->key.type; 
     833            type = (pjsip_transport_type_e)rdata->tp_info.transport->key.type; 
    834834            port = pjsip_transport_get_default_port_for_type(type); 
    835835        } 
  • pjproject/trunk/pjsip/src/pjsip/sip_transport_loop.c

    r1269 r1317  
    374374    loop->base.local_name.host = pj_str(ADDR_LOOP_DGRAM); 
    375375    loop->base.local_name.port =  
    376         pjsip_transport_get_default_port_for_type(loop->base.key.type); 
     376        pjsip_transport_get_default_port_for_type((pjsip_transport_type_e) 
     377                                                  loop->base.key.type); 
    377378    loop->base.addr_len = sizeof(pj_sockaddr_in); 
    378379    loop->base.endpt = endpt; 
  • pjproject/trunk/pjsip/src/pjsip/sip_util.c

    r1269 r1317  
    10771077                  rdata->pkt_info.src_addr_len); 
    10781078        res_addr->addr_len = rdata->pkt_info.src_addr_len; 
    1079         res_addr->dst_host.type = src_transport->key.type; 
     1079        res_addr->dst_host.type=(pjsip_transport_type_e)src_transport->key.type; 
    10801080        res_addr->dst_host.flag = src_transport->flag; 
    10811081        pj_strdup( pool, &res_addr->dst_host.addr.host,  
     
    10961096         */ 
    10971097        res_addr->transport = NULL; 
    1098         res_addr->dst_host.type = src_transport->key.type; 
     1098        res_addr->dst_host.type=(pjsip_transport_type_e)src_transport->key.type; 
    10991099        res_addr->dst_host.flag = src_transport->flag; 
    11001100        pj_strdup( pool, &res_addr->dst_host.addr.host,  
     
    11151115                  rdata->pkt_info.src_addr_len); 
    11161116        res_addr->addr_len = rdata->pkt_info.src_addr_len; 
    1117         res_addr->dst_host.type = src_transport->key.type; 
     1117        res_addr->dst_host.type=(pjsip_transport_type_e)src_transport->key.type; 
    11181118        res_addr->dst_host.flag = src_transport->flag; 
    11191119        pj_strdup( pool, &res_addr->dst_host.addr.host,  
     
    11271127    } else { 
    11281128        res_addr->transport = NULL; 
    1129         res_addr->dst_host.type = src_transport->key.type; 
     1129        res_addr->dst_host.type=(pjsip_transport_type_e)src_transport->key.type; 
    11301130        res_addr->dst_host.flag = src_transport->flag; 
    11311131        pj_strdup( pool, &res_addr->dst_host.addr.host,  
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r1278 r1317  
    14111411 
    14121412    /* Save the transport */ 
    1413     pjsua_var.tpdata[id].type = tp->key.type; 
     1413    pjsua_var.tpdata[id].type = (pjsip_transport_type_e) tp->key.type; 
    14141414    pjsua_var.tpdata[id].local_name = tp->local_name; 
    14151415    pjsua_var.tpdata[id].data.tp = tp; 
     
    14811481     
    14821482        info->id = id; 
    1483         info->type = tp->key.type; 
     1483        info->type = (pjsip_transport_type_e) tp->key.type; 
    14841484        info->type_name = pj_str(tp->type_name); 
    14851485        info->info = pj_str(tp->info); 
Note: See TracChangeset for help on using the changeset viewer.