aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-10 09:09:16 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-10 09:09:16 +0000
commit9e8603c06dc57ac8be815bb92a152ad5aa175f23 (patch)
tree4844a6d447394e3b7fd09ee597a19835acd526c1 /include
parentc400f24164b9bd4d9e417ae964d120ebaccb28ca (diff)
Allow media to go directly between IAX endpoints while signalling still
goes through the existing path. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26314 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h
index d2db42e07..134caa8dc 100644
--- a/include/asterisk/utils.h
+++ b/include/asterisk/utils.h
@@ -102,6 +102,14 @@ extern unsigned int __unsigned_int_flags_dummy;
(p)->flags &= ~(flag); \
} while (0)
+#define ast_set_flags_to(p,flag,value) do { \
+ typeof ((p)->flags) __p = (p)->flags; \
+ typeof (__unsigned_int_flags_dummy) __x = 0; \
+ (void) (&__p == &__x); \
+ (p)->flags &= ~(flag); \
+ (p)->flags |= (value); \
+ } while (0)
+
/* Non-type checking variations for non-unsigned int flags. You
should only use non-unsigned int flags where required by
protocol etc and if you know what you're doing :) */