diff options
author | Mark Spencer <markster@digium.com> | 2006-05-10 09:09:16 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2006-05-10 09:09:16 +0000 |
commit | 66ed134473faeb5bf3bac6e00fe928d49e60f62f (patch) | |
tree | 4844a6d447394e3b7fd09ee597a19835acd526c1 /include | |
parent | e8dcc5d429a2111eea4f16ce880745bbfc8e6a00 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/utils.h | 8 |
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 :) */ |