diff options
author | Benny Prijono <bennylp@teluu.com> | 2010-03-10 13:33:25 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2010-03-10 13:33:25 +0000 |
commit | 8e703ff217b32a9cc4d29393769ac85688900fbf (patch) | |
tree | d857fa788375d164e87eb7bc578dd9d8b09d606f /pjsip/include | |
parent | 44c2febe5e74bb190b1d68dd506e1ce48714bc97 (diff) |
More #1032 (new SIP TCP/TLS transport callback):
- PJSUA-LIB transport callback, if installed, will call the previously registered callback, to allow multiple transport callbacks to be installed
- there seem to be a bug with the use of "pjsip_tp_state_callback" everywhere (the "pjsip_tp_state_callback" type is pointer, but most variables of this type are declared to pointer too)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3119 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip/sip_transport.h | 4 | ||||
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua_internal.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/pjsip/include/pjsip/sip_transport.h b/pjsip/include/pjsip/sip_transport.h index 8da4d561..92c624fe 100644 --- a/pjsip/include/pjsip/sip_transport.h +++ b/pjsip/include/pjsip/sip_transport.h @@ -1312,7 +1312,7 @@ typedef void (*pjsip_tp_state_callback)( * @return PJ_SUCCESS on success, or the appropriate error code. */ PJ_DECL(pj_status_t) pjsip_tpmgr_set_status_cb(pjsip_tpmgr *mgr, - pjsip_tp_state_callback *cb); + pjsip_tp_state_callback cb); /** @@ -1322,7 +1322,7 @@ PJ_DECL(pj_status_t) pjsip_tpmgr_set_status_cb(pjsip_tpmgr *mgr, * * @return The transport state callback or NULL if it is not set. */ -PJ_DECL(pjsip_tp_state_callback*) pjsip_tpmgr_get_status_cb( +PJ_DECL(pjsip_tp_state_callback) pjsip_tpmgr_get_status_cb( const pjsip_tpmgr *mgr); diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h index caba46aa..527b53ae 100644 --- a/pjsip/include/pjsua-lib/pjsua_internal.h +++ b/pjsip/include/pjsua-lib/pjsua_internal.h @@ -252,6 +252,7 @@ struct pjsua_data pjsip_endpoint *endpt; /**< Global endpoint. */ pjsip_module mod; /**< pjsua's PJSIP module. */ pjsua_transport_data tpdata[8]; /**< Array of transports. */ + pjsip_tp_state_callback old_tp_cb; /**< Old transport callback. */ /* Threading: */ pj_bool_t thread_quit_flag; /**< Thread quit flag. */ |