Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

flags.h File Reference

Go to the source code of this file.

Defines

#define MAX_FLAG   ((unsigned int)( sizeof(flag_t) * CHAR_BIT - 1 ))

Typedefs

typedef unsigned int flag_t

Enumerations

enum  {
  FL_WHITE = 1, FL_YELLOW, FL_GREEN, FL_RED,
  FL_BLUE, FL_MAGENTA, FL_BROWN, FL_BLACK,
  FL_ACC, FL_MAX
}

Functions

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)
int register_flag (char *name, int pos)
int get_flag_no (char *name, int len)
int check_flag (int pos)
void init_named_flags ()


Define Documentation

#define MAX_FLAG   ((unsigned int)( sizeof(flag_t) * CHAR_BIT - 1 ))
 

Definition at line 38 of file flags.h.

Referenced by flag_in_range(), and register_flag().


Typedef Documentation

typedef unsigned int flag_t
 

Definition at line 36 of file flags.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
FL_WHITE 
FL_YELLOW 
FL_GREEN 
FL_RED 
FL_BLUE 
FL_MAGENTA 
FL_BROWN 
FL_BLACK 
FL_ACC 
FL_MAX 

Definition at line 33 of file flags.h.


Function Documentation

int check_flag int  pos  ) 
 

Definition at line 106 of file flags.c.

References flag_in_range(), L_WARN, LOG, and registered_flags.

Referenced by yyparse().

int flag_in_range flag_t  flag  ) 
 

Definition at line 60 of file flags.c.

References flag, L_ERR, LOG, and MAX_FLAG.

Referenced by check_flag(), and do_action().

int get_flag_no char *  name,
int  len
 

Definition at line 146 of file flags.c.

References get_flag_entry(), len, and flag_entry::no.

Referenced by fix_flag(), and yyparse().

void init_named_flags  ) 
 

Definition at line 95 of file flags.c.

References clist_init, and name2flags.

Referenced by main().

int isflagset struct sip_msg msg,
flag_t  flag
 

Definition at line 56 of file flags.c.

References sip_msg::flags.

Referenced by do_action(), insert(), is_acc_on(), is_mc_on(), radius_authorize_sterman(), and update().

int register_flag char *  name,
int  pos
 

Definition at line 164 of file flags.c.

References clist_insert, flag_search(), FLAGS_NAME_HASH_ENTRIES, get_hash1_raw(), L_ERR, L_WARN, _str::len, len, LOG, MAX_FLAG, flag_entry::name, name2flags, flag_entry::no, pkg_malloc, registered_flags, and _str::s.

Referenced by fix_flag(), and yyparse().

int resetflag struct sip_msg msg,
flag_t  flag
 

Definition at line 51 of file flags.c.

References sip_msg::flags.

Referenced by do_action(), and failure_handler().

int setflag struct sip_msg msg,
flag_t  flag
 

Definition at line 46 of file flags.c.

References sip_msg::flags.

Referenced by cpl_proxy_to_loc_set(), do_action(), lookup(), and lookup2().


Generated on Thu Jul 29 04:15:54 2010 for SIPExpressRouter by  doxygen 1.3.9.1