Ignore:
Timestamp:
Mar 21, 2007 9:12:22 AM (17 years ago)
Author:
bennylp
Message:

s/stun_endpoint/stun_setting

File:
1 moved

Legend:

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

    r1089 r1090  
    3333/* **************************************************************************/ 
    3434/** 
    35  * @defgroup PJNATH_STUN_ENDPOINT STUN Endpoint 
    36  * @brief Management of incoming and outgoing STUN transactions. 
     35 * @defgroup PJNATH_STUN_SETTING STUN Settings 
     36 * @brief STUN settings. 
    3737 * @ingroup PJNATH_STUN 
    3838 * @{ 
     
    4040 
    4141/** 
    42  * Opaque declaration for STUN endpoint. STUN endpoint manages client and 
    43  * server STUN transactions, and it needs to be initialized before application 
    44  * can send or receive STUN messages. 
     42 * Opaque declaration for STUN setting. 
    4543 */ 
    4644typedef struct pj_stun_config 
     
    9290 
    9391/** 
    94  * Create a STUN endpoint instance. 
     92 * Initialize STUN config. 
    9593 */ 
    96 PJ_DECL(pj_status_t) pj_stun_config_create(pj_pool_factory *factory, 
    97                                            unsigned options, 
    98                                            pj_ioqueue_t *ioqueue, 
    99                                            pj_timer_heap_t *timer_heap, 
    100                                            pj_stun_config **p_endpt); 
     94PJ_INLINE(void) pj_stun_config_init(pj_stun_config *cfg, 
     95                                    pj_pool_factory *factory, 
     96                                    unsigned options, 
     97                                    pj_ioqueue_t *ioqueue, 
     98                                    pj_timer_heap_t *timer_heap) 
     99{ 
     100    pj_bzero(cfg, sizeof(*cfg)); 
    101101 
    102 /** 
    103  * Destroy STUN endpoint instance. 
    104  */ 
    105 PJ_DECL(pj_status_t) pj_stun_config_destroy(pj_stun_config *endpt); 
     102    cfg->pf = factory; 
     103    cfg->options = options; 
     104    cfg->ioqueue = ioqueue; 
     105    cfg->timer_heap = timer_heap; 
     106    cfg->rto_msec = PJ_STUN_RTO_VALUE; 
     107    cfg->res_cache_msec = 10000; 
     108} 
    106109 
    107110 
Note: See TracChangeset for help on using the changeset viewer.