From 66ed134473faeb5bf3bac6e00fe928d49e60f62f Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Wed, 10 May 2006 09:09:16 +0000 Subject: Allow media to go directly between IAX endpoints while signalling still goes through the existing path. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26314 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/utils.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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 :) */ -- cgit v1.2.3