diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-04-04 11:06:34 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-04-04 11:06:34 +0000 |
commit | 9da5ebeca867322da5ed41e4e9fb3218caf5ab41 (patch) | |
tree | fb43d750f33df9df7d6fb63e568d6a3522d312c1 /pjsip/include | |
parent | e7a65ea2ca8a296a5134dc61b339597763e1dffd (diff) |
Changed pjsip_dlg_send_request() API to NOT return transaction as it is not safe against race condition
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@376 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip/sip_dialog.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pjsip/include/pjsip/sip_dialog.h b/pjsip/include/pjsip/sip_dialog.h index 42ce7ba1..c365a8d5 100644 --- a/pjsip/include/pjsip/sip_dialog.h +++ b/pjsip/include/pjsip/sip_dialog.h @@ -408,14 +408,18 @@ PJ_DECL(pj_status_t) pjsip_dlg_create_request( pjsip_dialog *dlg, * * @param dlg The dialog. * @param tdata The request message to be sent. - * @param p_tsx Optional argument to receive the transaction - * instance used to send the request. + * @param mod_data_id Optional module data index to put an optional data + * into the transaction. If no module data is to be + * attached, this value should be -1. + * @param mod_data Optional module data to be attached to the + * transaction at mod_data_id index. * * @return PJ_SUCCESS on success. */ PJ_DECL(pj_status_t) pjsip_dlg_send_request ( pjsip_dialog *dlg, pjsip_tx_data *tdata, - pjsip_transaction **p_tsx ); + int mod_data_id, + void *mod_data); /** |