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

s/stun_endpoint/stun_setting

File:
1 moved

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/stun_setting.c

    r1089 r1090  
    2222#include <pj/pool.h> 
    2323 
    24  
    25 /* 
    26  * Create a STUN endpoint instance. 
    27  */ 
    28 PJ_DEF(pj_status_t) pj_stun_config_create( pj_pool_factory *factory, 
    29                                            unsigned options, 
    30                                            pj_ioqueue_t *ioqueue, 
    31                                            pj_timer_heap_t *timer_heap, 
    32                                            pj_stun_config **p_endpt) 
    33 { 
    34     pj_pool_t *pool; 
    35     pj_stun_config *endpt; 
    36  
    37     PJ_ASSERT_RETURN(factory && p_endpt, PJ_EINVAL); 
    38  
    39     pool = pj_pool_create(factory, "stunendpt", 1000, 1000, NULL); 
    40     if (!pool) 
    41         return PJ_ENOMEM; 
    42      
    43     endpt = PJ_POOL_ZALLOC_T(pool, pj_stun_config); 
    44     endpt->pool = pool; 
    45     endpt->pf = factory; 
    46     endpt->options = options; 
    47     endpt->ioqueue = ioqueue; 
    48     endpt->timer_heap = timer_heap; 
    49     endpt->rto_msec = PJ_STUN_RTO_VALUE; 
    50     endpt->res_cache_msec = 10000; 
    51  
    52     *p_endpt = endpt; 
    53  
    54     return PJ_SUCCESS; 
    55 } 
    56  
    57  
    58 /* 
    59  * Destroy STUN endpoint instance. 
    60  */ 
    61 PJ_DEF(pj_status_t) pj_stun_config_destroy(pj_stun_config *endpt) 
    62 { 
    63     PJ_ASSERT_RETURN(endpt, PJ_EINVAL); 
    64  
    65     pj_pool_release(endpt->pool); 
    66  
    67     return PJ_SUCCESS; 
    68 } 
    69  
Note: See TracChangeset for help on using the changeset viewer.