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

filter.h File Reference

Go to the source code of this file.

Typedefs

typedef enum filter_prop filter_prop_t
 MAX_FILTER_PROP is used to know how many FILTER_PROPS there are.

typedef enum filter_prop_state filter_prop_state_t
 The states a filter_property.


Enumerations

enum  rule_type {
  RULE_TEXT = 0, RULE_IP, RULE_SIZE, RULE_JUMP,
  RULE_SHA1, RULE_FLAG, RULE_STATE
}
enum  rule_text_type {
  RULE_TEXT_PREFIX, RULE_TEXT_WORDS, RULE_TEXT_SUFFIX, RULE_TEXT_SUBSTR,
  RULE_TEXT_REGEXP, RULE_TEXT_EXACT
}
enum  rule_flag_action { RULE_FLAG_SET = 0, RULE_FLAG_UNSET = 1, RULE_FLAG_IGNORE = 2 }
enum  filter_prop { FILTER_PROP_DISPLAY = 0, FILTER_PROP_DOWNLOAD, MAX_FILTER_PROP }
 MAX_FILTER_PROP is used to know how many FILTER_PROPS there are. More...

enum  filter_prop_state {
  FILTER_PROP_STATE_UNKNOWN = 0, FILTER_PROP_STATE_DO, FILTER_PROP_STATE_DONT, MAX_FILTER_PROP_STATE,
  FILTER_PROP_STATE_IGNORE
}
 The states a filter_property. More...


Typedef Documentation

typedef enum filter_prop_state filter_prop_state_t
 

The states a filter_property.

I chose 0 for UNKNOWN because that makes it easy to initialize the property array with g_new0 and it's easy to check if the state is still unset by !. FILTER_PROP_IGNORE is needed because we also want filter rules that allow to act only on one property and ignores the other.

typedef enum filter_prop filter_prop_t
 

MAX_FILTER_PROP is used to know how many FILTER_PROPS there are.


Enumeration Type Documentation

enum filter_prop
 

MAX_FILTER_PROP is used to know how many FILTER_PROPS there are.

Enumeration values:
FILTER_PROP_DISPLAY 
FILTER_PROP_DOWNLOAD 
MAX_FILTER_PROP 

enum filter_prop_state
 

The states a filter_property.

I chose 0 for UNKNOWN because that makes it easy to initialize the property array with g_new0 and it's easy to check if the state is still unset by !. FILTER_PROP_IGNORE is needed because we also want filter rules that allow to act only on one property and ignores the other.

Enumeration values:
FILTER_PROP_STATE_UNKNOWN 
FILTER_PROP_STATE_DO 
FILTER_PROP_STATE_DONT 
MAX_FILTER_PROP_STATE 
FILTER_PROP_STATE_IGNORE 

enum rule_flag_action
 

Enumeration values:
RULE_FLAG_SET 
RULE_FLAG_UNSET 
RULE_FLAG_IGNORE 

enum rule_text_type
 

Enumeration values:
RULE_TEXT_PREFIX 
RULE_TEXT_WORDS 
RULE_TEXT_SUFFIX 
RULE_TEXT_SUBSTR 
RULE_TEXT_REGEXP 
RULE_TEXT_EXACT 

enum rule_type
 

Enumeration values:
RULE_TEXT 
RULE_IP 
RULE_SIZE 
RULE_JUMP 
RULE_SHA1 
RULE_FLAG 
RULE_STATE 


Generated on Sun Feb 12 10:50:01 2006 for Gtk-Gnutella by doxygen 1.3.6