diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-23 11:32:22 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-23 11:32:22 +0000 |
commit | 84338ad7535e826a1c3b4b1b7b976630964cba88 (patch) | |
tree | 4ea341b9c457e6cd2b88b4183403ce0494d48f21 /include | |
parent | 1419922cd0b3ffef0a19f7b14c91a8b15da0714e (diff) |
Add "ast_flags_all" mask (bug #3136)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4543 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/utils.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index c1ed65504..afea97e83 100755 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -16,6 +16,7 @@ #include <netdb.h> #include <pthread.h> #include <asterisk/lock.h> +#include <limits.h> #define ast_test_flag(p,flag) ((p)->flags & (flag)) @@ -28,6 +29,8 @@ #define ast_set2_flag(p,value,flag) ((value) ? ast_set_flag(p,flag) : ast_clear_flag(p,flag)) +#define AST_FLAGS_ALL UINT_MAX + static inline int ast_strlen_zero(const char *s) { return (*s == '\0'); @@ -39,7 +42,7 @@ struct ast_hostent { }; struct ast_flags { - int flags; + unsigned int flags; }; extern char *ast_strip(char *buf); |