Commit 83506032 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Added NHP_ISSET() to nua_stack.h.

darcs-hash:20051130122905-65a35-60f4c8eae1203ec8d7707657c8ca310b608dc8f8.gz
parent 2f93617e
......@@ -389,9 +389,13 @@ typedef struct nua_handle_preferences
/* Check if preference is set in the handle */
#define NH_PISSET(nh, pref) \
((nh)->nh_prefs->nhp_set.set_bits.nhp_##pref && \
(NHP_ISSET((nh)->nh_prefs, pref) && \
(nh)->nh_nua->nua_dhandle->nh_prefs != (nh)->nh_prefs)
/* Check if preference is set */
#define NHP_ISSET(nhp, pref) \
((nhp)->nhp_set.set_bits.nhp_##pref)
#define NHP_UNSET_ALL(nhp) ((nhp)->nhp_set.set_any = 0)
#define NHP_SET_ALL(nhp) ((nhp)->nhp_set.set_any = 0xffffffffU)
#define NHP_IS_ANY_SET(nhp) ((nhp)->nhp_set.set_any != 0)
......
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