Ignore:
Timestamp:
Jan 18, 2006 11:34:15 PM (18 years ago)
Author:
bennylp
Message:

Complete tsx layer selftest, implemented authentication framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip-ua/sip_ua.h

    • Property svn:keywords set to Id
    r65 r123  
    2121 
    2222/** 
    23  * @file ua.h 
    24  * @brief SIP User Agent Library 
     23 * @file sip_ua.h 
     24 * @brief SIP User Agent Module 
    2525 */ 
    2626 
    27 #include <pjsip_mod_ua/sip_dialog.h> 
    2827 
    2928PJ_BEGIN_DECL 
     
    4140 */ 
    4241 
    43 typedef struct pjsip_dlg_callback pjsip_dlg_callback; 
    44  
    45 /** 
    46  * \brief This structure describes a User Agent instance. 
    47  */ 
    48 struct pjsip_user_agent 
    49 { 
    50     pjsip_endpoint     *endpt; 
    51     pj_pool_t          *pool; 
    52     pj_mutex_t         *mutex; 
    53     pj_uint32_t         mod_id; 
    54     pj_hash_table_t    *dlg_table; 
    55     pjsip_dlg_callback *dlg_cb; 
    56     pj_list             dlg_list; 
    57 }; 
    58  
    59 /** 
    60  * Create a new dialog. 
    61  */ 
    62 PJ_DECL(pjsip_dlg*) pjsip_ua_create_dialog( pjsip_user_agent *ua, 
    63                                                pjsip_role_e role ); 
     42/** User agent type. */ 
     43typedef pjsip_module pjsip_user_agent; 
    6444 
    6545 
    6646/** 
    67  * Destroy dialog. 
     47 * Initialize user agent layer and register it to the specified endpoint. 
     48 * 
     49 * @param endpt         The endpoint where the user agent will be 
     50 *                      registered. 
     51 * 
     52 * @return              PJ_SUCCESS on success. 
    6853 */ 
    69 PJ_DECL(void) pjsip_ua_destroy_dialog( pjsip_dlg *dlg ); 
    70  
    71  
    72 /**  
    73  * Register callback to receive dialog notifications. 
    74  */ 
    75 PJ_DECL(void) pjsip_ua_set_dialog_callback( pjsip_user_agent *ua,  
    76                                             pjsip_dlg_callback *cb ); 
    77  
     54PJ_DECL(pj_status_t) pjsip_ua_init(pjsip_endpoint *endpt); 
    7855 
    7956/** 
    80  * Get the module interface for the UA module. 
     57 * Get the instance of the user agent. 
     58 * 
     59 * @return              The user agent module instance. 
    8160 */ 
    82 PJ_DECL(pjsip_module*) pjsip_ua_get_module(void); 
    83  
     61PJ_DECL(pjsip_user_agent*) pjsip_ua_instance(void); 
    8462 
    8563/** 
    86  * Dump user agent state to log file. 
     64 * Destroy the user agent layer. 
     65 * 
     66 * @return              PJ_SUCCESS on success. 
    8767 */ 
    88 PJ_DECL(void) pjsip_ua_dump( pjsip_user_agent *ua ); 
     68PJ_DECL(pj_status_t) pjsip_ua_destroy(void); 
     69 
    8970 
    9071/** 
     
    9475PJ_END_DECL 
    9576 
     77 
    9678#endif  /* __PJSIP_UA_H__ */ 
    9779 
Note: See TracChangeset for help on using the changeset viewer.