Commit 4862c206 authored by Pekka Pessi's avatar Pekka Pessi

nua: updated nua_stack_init_handle() prototype

darcs-hash:20070919173858-65a35-da523833b82a1a117e2b819e300d7248b7ee9922.gz
parent 4e45fe9c
......@@ -79,7 +79,7 @@ nua_stack_notifier(nua_t *nua, nua_handle_t *nh, nua_event_t e, tagi_t const *ta
int status = 900;
char const *phrase = nua_internal_error;
nua_stack_init_handle(nua, nh, TAG_NEXT(tags));
nua_stack_init_handle(nua, nh, tags);
tl_gets(tags,
NUTAG_URL_REF(url),
......
......@@ -753,10 +753,8 @@ void nh_destroy(nua_t *nua, nua_handle_t *nh)
* @retval -1 upon an error
* @retval 0 when successful
*/
int nua_stack_init_handle(nua_t *nua, nua_handle_t *nh,
tag_type_t tag, tag_value_t value, ...)
int nua_stack_init_handle(nua_t *nua, nua_handle_t *nh, tagi_t const *tags)
{
ta_list ta;
int retval = 0;
if (nh == NULL)
......@@ -764,13 +762,9 @@ int nua_stack_init_handle(nua_t *nua, nua_handle_t *nh,
assert(nh != nua->nua_dhandle);
ta_start(ta, tag, value);
if (nua_stack_set_params(nua, nh, nua_i_error, ta_args(ta)) < 0)
if (nua_stack_set_params(nua, nh, nua_i_error, tags) < 0)
retval = -1;
ta_end(ta);
if (retval || nh->nh_init) /* Already initialized? */
return retval;
......@@ -813,7 +807,7 @@ nua_handle_t *nua_stack_incoming_handle(nua_t *nua,
SIPTAG_FROM(from), /* Remote AoR */
TAG_END());
if (nua_stack_init_handle(nh->nh_nua, nh, TAG_END()) < 0)
if (nua_stack_init_handle(nh->nh_nua, nh, NULL) < 0)
nh_destroy(nua, nh), nh = NULL;
if (nh && create_dialog) {
......@@ -1943,7 +1937,7 @@ int nua_client_init_request(nua_client_request_t *cr)
cr->cr_offer_recv = 0, cr->cr_answer_sent = 0;
cr->cr_terminated = 0, cr->cr_graceful = 0;
nua_stack_init_handle(nua, nh, TAG_NEXT(cr->cr_tags));
nua_stack_init_handle(nua, nh, cr->cr_tags);
if (cr->cr_method == sip_method_cancel) {
if (cr->cr_methods->crm_init) {
......
......@@ -336,8 +336,7 @@ nua_handle_t *nua_stack_incoming_handle(nua_t *nua,
sip_t const *sip,
int create_dialog);
int nua_stack_init_handle(nua_t *nua, nua_handle_t *nh,
tag_type_t tag, tag_value_t value, ...);
int nua_stack_init_handle(nua_t *nua, nua_handle_t *nh, tagi_t const *tags);
enum nh_kind {
nh_has_nothing,
......
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