summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-12-23 11:32:22 +0000
committerMark Spencer <markster@digium.com>2004-12-23 11:32:22 +0000
commit1395d93c0eeaaadb17380c2c61d42173aca02b24 (patch)
tree4ea341b9c457e6cd2b88b4183403ce0494d48f21 /include/asterisk
parent8e1a2d57a61e062b0ac8f937e65286b59434215c (diff)
Add "ast_flags_all" mask (bug #3136)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rwxr-xr-xinclude/asterisk/utils.h5
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);