Commit b975afe1 authored by anthmct's avatar anthmct

add nua_handle_fetch to get the magic from nh

darcs-hash:20061004231211-94646-478891b2a6599c908ce826eac9648771c1087d20.gz
parent 8d0abffe
......@@ -328,6 +328,30 @@ void nua_handle_bind(nua_handle_t *nh, nua_hmagic_t *hmagic)
nh->nh_magic = hmagic;
}
/** Fetch a callback context from an operation handle.
*
* @param nh Pointer to operation handle
*
* @return
* Pointer to callback context
*
* @par Related tags:
* none
*
* @par Events:
* none
*/
nua_hmagic_t *nua_handle_fetch(nua_handle_t *nh)
{
nua_hmagic_t *magic = NULL;
enter;
if (NH_IS_VALID(nh))
magic = nh->nh_magic;
return magic;
}
/* ---------------------------------------------------------------------- */
/** Check if operation handle is used for INVITE
......
......@@ -214,6 +214,9 @@ SOFIAPUBFUN int nua_handle_unref(nua_handle_t *);
/** Bind a callback context to an operation handle. */
SOFIAPUBFUN void nua_handle_bind(nua_handle_t *nh, nua_hmagic_t *magic);
/** Fetch a callback context from an operation handle. */
SOFIAPUBFUN nua_hmagic_t *nua_handle_fetch(nua_handle_t *nh);
/** Set handle parameters. */
SOFIAPUBFUN void nua_set_hparams(nua_handle_t *, tag_type_t, tag_value_t, ...);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment