Commit e8779d5a authored by Pekka Pessi's avatar Pekka Pessi

nta: added nta_msg_is_internal().

darcs-hash:20071122150133-65a35-eb03f843eef020bbd763a8bed0ec79ad46e22ce9.gz
parent acb819a3
......@@ -2774,11 +2774,17 @@ int nta_sip_is_internal(sip_t const *sip)
}
/** Check if the message is internally generated by NTA. */
int nta_is_internal_msg(msg_t const *msg)
int nta_msg_is_internal(msg_t const *msg)
{
return msg_get_flags(msg, NTA_INTERNAL_MSG) == NTA_INTERNAL_MSG;
}
/** Check if the message is internally generated by NTA.
*
* @deprecated Use nta_msg_is_internal() instead
*/
int nta_is_internal_msg(msg_t const *msg) { return nta_msg_is_internal(msg); }
/* ====================================================================== */
/* 5) Stateless operation */
......
......@@ -170,8 +170,7 @@ SOFIAPUBFUN int nta_msg_request_complete(msg_t *msg,
char const *method_name,
url_string_t const *req_url);
SOFIAPUBFUN int nta_is_internal_msg(msg_t const *msg);
SOFIAPUBFUN int nta_msg_is_internal(msg_t const *msg);
SOFIAPUBFUN int nta_sip_is_internal(sip_t const *sip);
/* ----------------------------------------------------------------------
......@@ -481,6 +480,8 @@ SOFIAPUBFUN void nta_reliable_destroy(nta_reliable_t *);
SOFIAPUBFUN void nta_msg_discard(nta_agent_t *agent, msg_t *msg);
SOFIAPUBFUN int nta_is_internal_msg(msg_t const *msg);
SOFIA_END_DECLS
#endif
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