Lines Matching defs:_new_msg
370 * Copy all "header_name" headers from _old_msg to _new_msg
373 _sip_find_and_copy_all_header(_sip_msg_t *_old_msg, _sip_msg_t *_new_msg,
379 if (_old_msg == NULL || _new_msg == NULL)
384 if (_old_msg != _new_msg)
385 (void) pthread_mutex_lock(&_new_msg->sip_msg_mutex);
388 ret = _sip_copy_header(_new_msg, header, NULL, B_TRUE);
393 if (_old_msg != _new_msg)
394 (void) pthread_mutex_unlock(&_new_msg->sip_msg_mutex);
399 * Copy header_name from _old_msg to _new_msg with extra_parm.
402 _sip_find_and_copy_header(sip_msg_t _old_msg, sip_msg_t _new_msg,
408 if (_old_msg == NULL || _new_msg == NULL)
417 (void) pthread_mutex_lock(&_new_msg->sip_msg_mutex);
418 ret = _sip_copy_header(_new_msg, header, extra_param, B_TRUE);
420 (void) pthread_mutex_unlock(&_new_msg->sip_msg_mutex);
432 _sip_msg_t *_new_msg;
438 _new_msg = (_sip_msg_t *)new_msg;
441 (void) pthread_mutex_lock(&_new_msg->sip_msg_mutex);
444 ret = _sip_copy_header(_new_msg, header, NULL, B_FALSE);
450 (void) pthread_mutex_unlock(&_new_msg->sip_msg_mutex);