flags.h
3881f12c
 /*
  * $Id$
  */
 
 
 #ifndef _FLAGS_H
 #define _FLAGS_H
 
 enum { FL_WHITE=1, FL_YELLOW, FL_GREEN, FL_RED, FL_BLUE, FL_MAGENTA,
 	   FL_BROWN, FL_BLACK, FL_ACC, FL_MAX };
 
4e2fdd79
 typedef unsigned int flag_t;
3881f12c
 
 #define MAX_FLAG  ( sizeof(flag_t) * CHAR_BIT - 1 )
 
 struct sip_msg;
 
 int setflag( struct sip_msg* msg, flag_t flag );
 int resetflag( struct sip_msg* msg, flag_t flag );
 int isflagset( struct sip_msg* msg, flag_t flag );
 
 int flag_in_range( flag_t flag );
 
 #endif