[Asterisk-cvs] asterisk/include/asterisk utils.h,1.12,1.13

markster at lists.digium.com markster at lists.digium.com
Thu Dec 23 06:36:43 CST 2004


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv31257/include/asterisk

Modified Files:
	utils.h 
Log Message:
Add "ast_flags_all" mask (bug #3136)


Index: utils.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/utils.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- utils.h	19 Dec 2004 20:50:55 -0000	1.12
+++ utils.h	23 Dec 2004 11:32:22 -0000	1.13
@@ -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_flags {
-	int flags;
+	unsigned int flags;
 };
 
 extern char *ast_strip(char *buf);




More information about the svn-commits mailing list