Changeset 123 for pjproject/trunk/pjsip/include/pjsip-ua/sip_ua.h
- Timestamp:
- Jan 18, 2006 11:34:15 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip-ua/sip_ua.h
- Property svn:keywords set to Id
r65 r123 21 21 22 22 /** 23 * @file ua.h24 * @brief SIP User Agent Library23 * @file sip_ua.h 24 * @brief SIP User Agent Module 25 25 */ 26 26 27 #include <pjsip_mod_ua/sip_dialog.h>28 27 29 28 PJ_BEGIN_DECL … … 41 40 */ 42 41 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. */ 43 typedef pjsip_module pjsip_user_agent; 64 44 65 45 66 46 /** 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. 68 53 */ 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 54 PJ_DECL(pj_status_t) pjsip_ua_init(pjsip_endpoint *endpt); 78 55 79 56 /** 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. 81 60 */ 82 PJ_DECL(pjsip_module*) pjsip_ua_get_module(void); 83 61 PJ_DECL(pjsip_user_agent*) pjsip_ua_instance(void); 84 62 85 63 /** 86 * Dump user agent state to log file. 64 * Destroy the user agent layer. 65 * 66 * @return PJ_SUCCESS on success. 87 67 */ 88 PJ_DECL(void) pjsip_ua_dump( pjsip_user_agent *ua ); 68 PJ_DECL(pj_status_t) pjsip_ua_destroy(void); 69 89 70 90 71 /** … … 94 75 PJ_END_DECL 95 76 77 96 78 #endif /* __PJSIP_UA_H__ */ 97 79
Note: See TracChangeset
for help on using the changeset viewer.