Ignore:
Timestamp:
Mar 18, 2007 5:39:27 PM (17 years ago)
Author:
bennylp
Message:

Changed pj_sockaddr structure and added pjnath project for ICE/STUN stuffs

File:
1 edited

Legend:

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

    r1062 r1080  
    1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
    1818 */ 
    19 #include <pjlib-util/stun_endpoint.h> 
    20 #include <pjlib-util/errno.h> 
     19#include <pjnath/stun_endpoint.h> 
     20#include <pjnath/errno.h> 
    2121#include <pj/assert.h> 
    2222#include <pj/pool.h> 
     
    2626 * Create a STUN endpoint instance. 
    2727 */ 
    28 PJ_DEF(pj_status_t) pj_stun_endpoint_create( pj_pool_factory *factory, 
    29                                              unsigned options, 
    30                                              pj_ioqueue_t *ioqueue, 
    31                                              pj_timer_heap_t *timer_heap, 
    32                                              pj_stun_endpoint **p_endpt) 
     28PJ_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) 
    3333{ 
    3434    pj_pool_t *pool; 
    35     pj_stun_endpoint *endpt; 
     35    pj_stun_config *endpt; 
    3636 
    3737    PJ_ASSERT_RETURN(factory && p_endpt, PJ_EINVAL); 
     
    4141        return PJ_ENOMEM; 
    4242     
    43     endpt = PJ_POOL_ZALLOC_T(pool, pj_stun_endpoint); 
     43    endpt = PJ_POOL_ZALLOC_T(pool, pj_stun_config); 
    4444    endpt->pool = pool; 
    4545    endpt->pf = factory; 
     
    5959 * Destroy STUN endpoint instance. 
    6060 */ 
    61 PJ_DEF(pj_status_t) pj_stun_endpoint_destroy(pj_stun_endpoint *endpt) 
     61PJ_DEF(pj_status_t) pj_stun_config_destroy(pj_stun_config *endpt) 
    6262{ 
    6363    PJ_ASSERT_RETURN(endpt, PJ_EINVAL); 
Note: See TracChangeset for help on using the changeset viewer.