Ignore:
Timestamp:
May 3, 2007 7:56:21 PM (17 years ago)
Author:
bennylp
Message:

Misc Symbian fixes, looks good

File:
1 edited

Legend:

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

    r1241 r1248  
    10121012} 
    10131013 
     1014/* 
     1015 * Return number of transports currently registered to the transport 
     1016 * manager. 
     1017 */ 
     1018PJ_DEF(unsigned) pjsip_tpmgr_get_transport_count(pjsip_tpmgr *mgr) 
     1019{ 
     1020    pj_hash_iterator_t itr_val; 
     1021    pj_hash_iterator_t *itr; 
     1022    int nr_of_transports = 0; 
     1023     
     1024    pj_lock_acquire(mgr->lock); 
     1025     
     1026    itr = pj_hash_first(mgr->table, &itr_val); 
     1027    while (itr) { 
     1028        nr_of_transports++; 
     1029        itr = pj_hash_next(mgr->table, itr); 
     1030    } 
     1031     
     1032    pj_lock_release(mgr->lock); 
     1033 
     1034    return nr_of_transports; 
     1035} 
    10141036 
    10151037/* 
Note: See TracChangeset for help on using the changeset viewer.