Commit f0dfcc21 authored by Pekka Pessi's avatar Pekka Pessi

nua.h, nua.c: added nua_magic(), too. Renamed nua_handle_fetch() as nua_handle_magic().

darcs-hash:20061006002201-65a35-54552465a71b008fd5c761464e0b5c80c35a1fd5.gz
parent affe4a0a
......@@ -238,6 +238,17 @@ void nua_destroy(nua_t *nua)
}
}
/** Fetch callback context from nua.
*
* @param nua Pointer to @nua stack object
*
* @return Callback context pointer.
*/
nua_magic_t *nua_magic(nua_t *nua)
{
reutrn nua ? nua->nua_magic : NULL;
}
/** Obtain default operation handle of the @nua stack object.
*
* A default operation can be used for operations where the
......@@ -341,7 +352,7 @@ void nua_handle_bind(nua_handle_t *nh, nua_hmagic_t *hmagic)
* @par Events:
* none
*/
nua_hmagic_t *nua_handle_fetch(nua_handle_t *nh)
nua_hmagic_t *nua_handle_magic(nua_handle_t *nh)
{
nua_hmagic_t *magic = NULL;
enter;
......
......@@ -189,6 +189,9 @@ SOFIAPUBFUN void nua_shutdown(nua_t *nua);
/** Destroy the NUA stack. */
SOFIAPUBFUN void nua_destroy(nua_t *nua);
/** Fetch callback context from nua. */
SOFIAPUBFUN nua_magic_t *nua_magic(nua_t *nua);
/** Set NUA parameters. */
SOFIAPUBFUN void nua_set_params(nua_t *, tag_type_t, tag_value_t, ...);
......@@ -215,7 +218,7 @@ SOFIAPUBFUN int nua_handle_unref(nua_handle_t *);
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);
SOFIAPUBFUN nua_hmagic_t *nua_handle_magic(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