Ignore:
Timestamp:
Mar 24, 2007 1:00:30 PM (17 years ago)
Author:
bennylp
Message:

ICE (work in progress): implement error codes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/include/pjnath/ice.h

    r1096 r1101  
    9797    pj_sockaddr          addr; 
    9898    pj_sockaddr          base_addr; 
    99     pj_sockaddr          srv_addr; 
     99    pj_sockaddr          rel_addr; 
    100100    pj_stun_session     *stun_sess; 
    101101} pj_ice_cand; 
     
    205205     
    206206    /* Valid list */ 
    207     unsigned             valid_cnt; 
    208     unsigned             valid_list[PJ_ICE_MAX_CHECKS]; 
     207    pj_ice_checklist     valid_list; 
    209208}; 
    210209 
     
    213212                                   const char *name, 
    214213                                   pj_ice_role role, 
     214                                   unsigned comp_cnt, 
    215215                                   const pj_ice_cb *cb, 
    216216                                   const pj_str_t *local_ufrag, 
     
    218218                                   pj_ice **p_ice); 
    219219PJ_DECL(pj_status_t) pj_ice_destroy(pj_ice *ice); 
    220 PJ_DECL(pj_status_t) pj_ice_add_comp(pj_ice *ice, unsigned comp_id); 
    221220PJ_DECL(pj_status_t) pj_ice_add_cand(pj_ice *ice, 
    222221                                     unsigned comp_id, 
     
    226225                                     const pj_sockaddr_t *addr, 
    227226                                     const pj_sockaddr_t *base_addr, 
    228                                      const pj_sockaddr_t *srv_addr, 
     227                                     const pj_sockaddr_t *rel_addr, 
    229228                                     int addr_len, 
    230229                                     unsigned *cand_id); 
    231230 
    232 PJ_DECL(unsigned) pj_ice_get_cand_cnt(pj_ice *ice); 
    233 PJ_DECL(pj_status_t) pj_ice_enum_cands(pj_ice *ice, 
    234                                        unsigned *p_count, 
    235                                        unsigned cand_ids[]); 
    236 PJ_DECL(pj_status_t) pj_ice_get_default_cand(pj_ice *ice, 
    237                                              unsigned comp_id, 
    238                                              int *cand_id); 
    239 PJ_DECL(pj_status_t) pj_ice_get_cand(pj_ice *ice, 
    240                                      unsigned cand_id, 
    241                                      pj_ice_cand **p_cand); 
     231PJ_DECL(pj_status_t) pj_ice_find_default_cand(pj_ice *ice, 
     232                                              unsigned comp_id, 
     233                                              int *cand_id); 
    242234 
    243235PJ_DECL(pj_status_t) pj_ice_create_check_list(pj_ice *ice, 
Note: See TracChangeset for help on using the changeset viewer.