Commit b9a1dda1 authored by Pekka Pessi's avatar Pekka Pessi

sip_header.h: added SIP_IS_ALLOWED() macro.

darcs-hash:20070226141230-55b16-0c6ab00c73ec71e6c17e2bcb31831cf81c382f67.gz
parent 20b35b2c
......@@ -345,9 +345,15 @@ int sip_has_supported(sip_supported_t const *support, char const *feature);
SOFIAPUBFUN
int sip_has_feature(msg_list_t const *supported, char const *feature);
/** Return true if the method is listed in @Allow header. */
SOFIAPUBFUN int sip_is_allowed(sip_allow_t const *allow,
sip_method_t method, char const *name);
/** Check if the well-known method is listed in @Allow header. @NEW_1_12_6 */
#define SIP_IS_ALLOWED(allow, method) \
(sip_method_unknown < (method) && (method) < 32 && \
(allow) && ((allow)->k_bitmap & (1 << (method))) != 0)
/* ---------------------------------------------------------------------------
* Bitmasks for header classifications
*/
......
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