flags.h File Reference

Flag management. More...

#include <limits.h>

Include dependency graph for flags.h:

This graph shows which files directly or indirectly include this file:

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

Functions

unsigned int fixup_flag (unsigned int idx)
int flag_idx2mask (int *flag)
int flag_in_range (flag_t flag)
unsigned int getsflags (void)
int isflagset (struct sip_msg *msg, flag_t flag)
int issflagset (unsigned int mask)
int resetflag (struct sip_msg *msg, flag_t flag)
int resetsflag (unsigned int mask)
int setflag (struct sip_msg *msg, flag_t flag)
int setsflag (unsigned int mask)
int setsflagsval (unsigned int val)


Detailed Description

Flag management.

Definition in file flags.h.


Define Documentation

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

Definition at line 36 of file flags.h.

Referenced by fixup_flag(), flag_idx2mask(), flag_in_range(), and mod_init().


Typedef Documentation

typedef unsigned int flag_t

Definition at line 34 of file flags.h.


Function Documentation

unsigned int fixup_flag ( unsigned int  idx  ) 

Definition at line 84 of file flags.c.

References LM_ERR, and MAX_FLAG.

Referenced by fix_actions().

int flag_idx2mask ( int *  flag  ) 

Definition at line 65 of file flags.c.

References LM_ERR, and MAX_FLAG.

Referenced by mod_init().

int flag_in_range ( flag_t  flag  ) 

Definition at line 56 of file flags.c.

References LM_ERR, and MAX_FLAG.

Referenced by fix_actions().

unsigned int getsflags ( void   ) 

Definition at line 117 of file flags.c.

References sflags.

Referenced by t_uac().

int isflagset ( struct sip_msg msg,
flag_t  flag 
)

Definition at line 52 of file flags.c.

References sip_msg::flags.

Referenced by do_action(), and radius_authorize_sterman().

int issflagset ( unsigned int  mask  ) 

Definition at line 112 of file flags.c.

References sflags.

Referenced by do_action().

int resetflag ( struct sip_msg msg,
flag_t  flag 
)

Definition at line 47 of file flags.c.

References sip_msg::flags.

Referenced by do_action().

int resetsflag ( unsigned int  mask  ) 

Definition at line 106 of file flags.c.

References mask, and sflags.

Referenced by do_action(), and run_top_route().

int setflag ( struct sip_msg msg,
flag_t  flag 
)

Definition at line 42 of file flags.c.

References sip_msg::flags.

Referenced by do_action(), EngageMediaProxy(), and NAT_Keepalive().

int setsflag ( unsigned int  mask  ) 

Definition at line 100 of file flags.c.

References sflags.

Referenced by do_action().

int setsflagsval ( unsigned int  val  ) 

Definition at line 94 of file flags.c.

References sflags.

Referenced by t_uac().


Generated on Wed May 23 06:01:03 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6