diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-06-06 14:12:23 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-06-06 14:12:23 +0000 |
commit | d37adaba9d2fe38fe3f06759c6ba47e37aa562c5 (patch) | |
tree | eb4410c8886db119d3e623bf9b4b29f400467356 /pjlib/include | |
parent | 70e0bfbb16138e426e270b15919ca333de352e6b (diff) |
More ticket #531: added user_data parameter in activesocket creation API to make it more robust against programming errors
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1986 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include')
-rw-r--r-- | pjlib/include/pj/activesock.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pjlib/include/pj/activesock.h b/pjlib/include/pj/activesock.h index 056890fb..e2213fda 100644 --- a/pjlib/include/pj/activesock.h +++ b/pjlib/include/pj/activesock.h @@ -227,6 +227,8 @@ PJ_DECL(void) pj_activesock_cfg_default(pj_activesock_cfg *cfg); * the default values will be used. * @param cb Pointer to structure containing application * callbacks. + * @param user_data Arbitrary user data to be associated with this + * active socket. * @param p_asock Pointer to receive the active socket instance. * * @return PJ_SUCCESS if the operation has been successful, @@ -238,6 +240,7 @@ PJ_DECL(pj_status_t) pj_activesock_create(pj_pool_t *pool, const pj_activesock_cfg *opt, pj_ioqueue_t *ioqueue, const pj_activesock_cb *cb, + void *user_data, pj_activesock_t **p_asock); /** @@ -253,6 +256,8 @@ PJ_DECL(pj_status_t) pj_activesock_create(pj_pool_t *pool, * the default values will be used. * @param cb Pointer to structure containing application * callbacks. + * @param user_data Arbitrary user data to be associated with this + * active socket. * @param p_asock Pointer to receive the active socket instance. * @param bound_addr If this argument is specified, it will be filled with * the bound address on return. @@ -265,6 +270,7 @@ PJ_DECL(pj_status_t) pj_activesock_create_udp(pj_pool_t *pool, const pj_activesock_cfg *opt, pj_ioqueue_t *ioqueue, const pj_activesock_cb *cb, + void *user_data, pj_activesock_t **p_asock, pj_sockaddr *bound_addr); |