|
Data Structures |
struct | node_parser |
Defines |
#define | GLOBAL_PRE 0 |
#define | GLOBAL_POST 1 |
#define | TO_BOOL(v) ((v) != 0 ? TRUE : FALSE) |
Typedefs |
typedef node_parser | node_parser_t |
Functions |
| RCSID ("$Id:search_xml.c, v 1.39 2005/11/27 04:37:45 cbiere Exp $") |
void | dump_ruleset (GList *ruleset) |
void | dump_filter (filter_t *filter) |
void | parse_xml (xmlNodePtr xmlnode, gpointer user_data) |
void | builtin_to_xml (xmlNodePtr) |
void | search_to_xml (xmlNodePtr, search_t *) |
void | filter_to_xml (xmlNodePtr, filter_t *) |
void | rule_to_xml (xmlNodePtr, rule_t *) |
void | xml_to_builtin (xmlNodePtr, gpointer) |
void | xml_to_search (xmlNodePtr, gpointer) |
void | xml_to_filter (xmlNodePtr, gpointer) |
void | xml_to_text_rule (xmlNodePtr, gpointer) |
void | xml_to_ip_rule (xmlNodePtr, gpointer) |
void | xml_to_size_rule (xmlNodePtr, gpointer) |
void | xml_to_jump_rule (xmlNodePtr, gpointer) |
void | xml_to_sha1_rule (xmlNodePtr, gpointer) |
void | xml_to_flag_rule (xmlNodePtr, gpointer) |
void | xml_to_state_rule (xmlNodePtr, gpointer) |
guint16 | get_rule_flags_from_xml (xmlNodePtr) |
xmlAttrPtr | xml_prop_printf (xmlNodePtr node, const gchar *name, const char *fmt,...) G_GNUC_PRINTF(3 |
| A wrapper to set use xmlSetProp() through a printf-like interface.
|
gchar * | xml_get_string (xmlNode *node, const gchar *id) |
| Get rid of the obnoxious (xmlChar *).
|
const xmlChar * | string_to_xmlChar (const gchar *p) |
xmlNodePtr | xml_new_empty_child (xmlNodePtr parent, const gchar *name) |
guint64 | parse_number (const gchar *buf, gint *error) |
| A wrapper around parse_uint64.
|
gpointer | parse_target (const gchar *buf, gint *error) |
| A wrapper around parse_uint64.
|
gpointer | target_new_id (gboolean do_reset) |
| Returns the next available target ID.
|
void | target_map_reset (void) |
| Resets the target ID counter and frees target_map if it was created.
|
const gchar * | target_to_string (filter_t *target) |
| Creates a string representation of a ``target''.
|
xmlAttrPtr | xml_prop_set (xmlNodePtr node, const gchar *name, const char *value) |
| A wrapper around xmlSetProp() to get rid of (xmlChar *).
|
void | search_store_xml (void) |
| Store pending searches.
|
gboolean | search_retrieve_xml (void) |
| Retrieve search list and restart searches.
|
Variables |
GList * | filters |
GList * | filters_current |
const gchar | NODE_BUILTIN [] = "BuiltIn" |
const gchar | NODE_SEARCH [] = "Search" |
const gchar | NODE_FILTER [] = "Filter" |
const gchar | NODE_RULE_TEXT [] = "TextRule" |
const gchar | NODE_RULE_IP [] = "IpRule" |
const gchar | NODE_RULE_SIZE [] = "SizeRule" |
const gchar | NODE_RULE_JUMP [] = "JumpRule" |
const gchar | NODE_RULE_SHA1 [] = "SHA1Rule" |
const gchar | NODE_RULE_FLAG [] = "FlagRule" |
const gchar | NODE_RULE_STATE [] = "StateRule" |
const gchar | TAG_BUILTIN_SHOW_UID [] = "ShowUID" |
const gchar | TAG_BUILTIN_DROP_UID [] = "DropUID" |
const gchar | TAG_BUILTIN_DOWNLOAD_UID [] = "DownloadUID" |
const gchar | TAG_BUILTIN_NODOWNLOAD_UID [] = "NoDownloadUID" |
const gchar | TAG_BUILTIN_RETURN_UID [] = "ReturnUID" |
const gchar | TAG_FILTER_NAME [] = "Name" |
const gchar | TAG_FILTER_GLOBAL [] = "Global" |
const gchar | TAG_FILTER_UID [] = "UID" |
const gchar | TAG_FILTER_ACTIVE [] = "Active" |
const gchar | TAG_SEARCH_QUERY [] = "Query" |
const gchar | TAG_SEARCH_ENABLED [] = "Enabled" |
const gchar | TAG_SEARCH_SPEED [] = "Speed" |
const gchar | TAG_SEARCH_PASSIVE [] = "Passive" |
const gchar | TAG_SEARCH_REISSUE_TIMEOUT [] = "ReissueTimeout" |
const gchar | TAG_SEARCH_CREATE_TIME [] = "CreateTime" |
const gchar | TAG_SEARCH_LIFETIME [] = "LifeTime" |
const gchar | TAG_SEARCH_SORT_COL [] = "SortCol" |
const gchar | TAG_SEARCH_SORT_ORDER [] = "SortOrder" |
const gchar | TAG_RULE_TEXT_CASE [] = "Case" |
const gchar | TAG_RULE_TEXT_MATCH [] = "Match" |
const gchar | TAG_RULE_TEXT_TYPE [] = "Type" |
const gchar | TAG_RULE_IP_ADDR [] = "Address" |
const gchar | TAG_RULE_IP_MASK [] = "Netmask" |
const gchar | TAG_RULE_SIZE_LOWER [] = "Lower" |
const gchar | TAG_RULE_SIZE_UPPER [] = "Upper" |
const gchar | TAG_RULE_SHA1_HASH [] = "Hash" |
const gchar | TAG_RULE_SHA1_FILENAME [] = "OriginalFilename" |
const gchar | TAG_RULE_NEGATE [] = "Negate" |
const gchar | TAG_RULE_ACTIVE [] = "Active" |
const gchar | TAG_RULE_SOFT [] = "Soft" |
const gchar | TAG_RULE_TARGET [] = "Target" |
const gchar | TAG_RULE_FLAG_BUSY [] = "Busy" |
const gchar | TAG_RULE_FLAG_PUSH [] = "Push" |
const gchar | TAG_RULE_FLAG_STABLE [] = "Stable" |
const gchar | TAG_RULE_STATE_DISPLAY [] = "Display" |
const gchar | TAG_RULE_STATE_DOWNLOAD [] = "Download" |
const gchar | search_file_xml [] = "searches.xml" |
const gchar | search_file_xml_new [] = "searches.xml.new" |
const gchar | search_file_xml_old [] = "searches.xml.orig" |
GHashTable * | target_map = NULL |
GHashTable * | id_map = NULL |
node_parser_t | parser_map [] |