aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-xml.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-07-30 11:23:41 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-07-30 11:23:41 +0800
commita44d1c188b0bc166e5966ae3854a1c0bc8c44afd (patch)
treedf30c85510f2b55384f95f184ae4768eedc0bac7 /filter/filter-xml.h
parent4f1ecbb64b04048e1765f25e65799830316021d1 (diff)
downloadgsoc2013-evolution-a44d1c188b0bc166e5966ae3854a1c0bc8c44afd.tar
gsoc2013-evolution-a44d1c188b0bc166e5966ae3854a1c0bc8c44afd.tar.gz
gsoc2013-evolution-a44d1c188b0bc166e5966ae3854a1c0bc8c44afd.tar.bz2
gsoc2013-evolution-a44d1c188b0bc166e5966ae3854a1c0bc8c44afd.tar.lz
gsoc2013-evolution-a44d1c188b0bc166e5966ae3854a1c0bc8c44afd.tar.xz
gsoc2013-evolution-a44d1c188b0bc166e5966ae3854a1c0bc8c44afd.tar.zst
gsoc2013-evolution-a44d1c188b0bc166e5966ae3854a1c0bc8c44afd.zip
** Almost a total rewrite of every file, except for filter-driver which
2000-07-30 Not Zed <NotZed@HelixCode.com> ** Almost a total rewrite of every file, except for filter-driver which just had minor updates. The rule format has changed. svn path=/trunk/; revision=4418
Diffstat (limited to 'filter/filter-xml.h')
-rw-r--r--filter/filter-xml.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/filter/filter-xml.h b/filter/filter-xml.h
deleted file mode 100644
index 00b4758feb..0000000000
--- a/filter/filter-xml.h
+++ /dev/null
@@ -1,78 +0,0 @@
-
-#ifndef _FILTER_XML_H
-#define _FILTER_XML_H
-
-#include <glib.h>
-#include <gnome-xml/tree.h>
-
-#include "filter-arg.h"
-
-enum filter_xml_token {
- FILTER_XML_TEXT=0,
- FILTER_XML_RULE,
- FILTER_XML_CODE,
- FILTER_XML_DESC,
- FILTER_XML_RULESET,
- FILTER_XML_OPTION,
- FILTER_XML_OPTIONRULE,
- FILTER_XML_OPTIONSET,
- FILTER_XML_OPTIONVALUE,
- FILTER_XML_SOURCE,
- FILTER_XML_SEND,
- FILTER_XML_RECEIVE,
- FILTER_XML_ADDRESS,
- FILTER_XML_FOLDER,
- FILTER_XML_STRING,
- FILTER_XML_NAME,
- FILTER_XML_MATCH,
- FILTER_XML_ACTION,
- FILTER_XML_EXCEPT
-};
-
-struct filter_desc {
- int type;
- char *data;
- char *varname; /* for named types */
- int vartype;
-};
-
-struct filter_rule {
- int type;
- char *name;
- char *code;
- GList *description;
-};
-
-struct filter_optionrule {
- struct filter_rule *rule;
- GList *args; /* FilterArg objects */
-};
-
-struct filter_option {
- int type; /* 'send' 'receive'? */
- GList *description; /* filter_desc */
- 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);
-
-void filter_description_free(GList *descl);
-void filter_load_ruleset_free(GList *nodel);
-void filter_load_optionset_free(GList *optionl);
-
-GList *filter_load_ruleset_file(const char *name);
-GList *filter_load_optionset_file(const char *name, GList *rules);
-int filter_write_optionset_file(const char *name, 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);
-
-/* utility functions */
-struct filter_optionrule *filter_clone_optionrule(struct filter_optionrule *or);
-void filter_clone_optionrule_free(struct filter_optionrule *or);
-struct filter_optionrule *filter_optionrule_new_from_rule(struct filter_rule *rule);
-
-#endif /* ! _FILTER_XML_H */