aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-xml.h
diff options
context:
space:
mode:
Diffstat (limited to 'filter/filter-xml.h')
-rw-r--r--filter/filter-xml.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/filter/filter-xml.h b/filter/filter-xml.h
index a56b4baa2e..1ff353bd20 100644
--- a/filter/filter-xml.h
+++ b/filter/filter-xml.h
@@ -2,6 +2,9 @@
#ifndef _FILTER_XML_H
#define _FILTER_XML_H
+#include <glib.h>
+#include <gnome-xml/tree.h>
+
enum filter_xml_token {
FILTER_XML_TEXT=0,
FILTER_XML_RULE,
@@ -48,4 +51,12 @@ struct filter_option {
GList *options; /* option_rule */
};
+GList *filter_load_ruleset(xmlDocPtr doc);
+GList *filter_load_optionset(xmlDocPtr doc, GList *rules);
+xmlNodePtr filter_write_optionset(xmlDocPtr doc, GList *optionl);
+
+/* callbacks for searching GLists of various types */
+int filter_find_rule(struct filter_rule *a, char *name);
+int filter_find_arg(FilterArg *a, char *name);
+
#endif /* ! _FILTER_XML_H */