diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-09-17 05:15:38 +0800 |
---|---|---|
committer | Jeremy Katz <katzj@src.gnome.org> | 2003-09-17 05:15:38 +0800 |
commit | e8c9e32de84fd581b7fdb7584f7f360b8da946b7 (patch) | |
tree | 5b1d7bdf8b8a111b6b2260eec6055154ae15c208 | |
parent | 3bed164dfa108cdaf1fb29417c226feeaf50c298 (diff) | |
download | gsoc2013-evolution-e8c9e32de84fd581b7fdb7584f7f360b8da946b7.tar.gz gsoc2013-evolution-e8c9e32de84fd581b7fdb7584f7f360b8da946b7.tar.zst gsoc2013-evolution-e8c9e32de84fd581b7fdb7584f7f360b8da946b7.zip |
type should be a GType. (rule_context_add_rule_set): Likewise. Update
2003-09-16 Jeremy Katz <katzj@redhat.com>
* rule-context.c (rule_context_add_part_set): type should be a GType.
(rule_context_add_rule_set): Likewise.
* rule-context.h: Update prototypes. Use GType instead of int for
type in _part_set_map and _rule_set_map.
svn path=/trunk/; revision=22593
-rw-r--r-- | filter/ChangeLog | 7 | ||||
-rw-r--r-- | filter/rule-context.c | 4 | ||||
-rw-r--r-- | filter/rule-context.h | 8 |
3 files changed, 13 insertions, 6 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index d7b721a9ce..25c45ba4b1 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,10 @@ +2003-09-16 Jeremy Katz <katzj@redhat.com> + + * rule-context.c (rule_context_add_part_set): type should be a GType. + (rule_context_add_rule_set): Likewise. + * rule-context.h: Update prototypes. Use GType instead of int for + type in _part_set_map and _rule_set_map. + 2003-09-15 Not Zed <NotZed@Ximian.com> ** See Natzilla task #47524 diff --git a/filter/rule-context.c b/filter/rule-context.c index c822993d36..5559e15197 100644 --- a/filter/rule-context.c +++ b/filter/rule-context.c @@ -209,7 +209,7 @@ rule_context_new(void) } void -rule_context_add_part_set(RuleContext *rc, const char *setname, int part_type, RCPartFunc append, RCNextPartFunc next) +rule_context_add_part_set(RuleContext *rc, const char *setname, GType part_type, RCPartFunc append, RCNextPartFunc next) { struct _part_set_map *map; @@ -226,7 +226,7 @@ rule_context_add_part_set(RuleContext *rc, const char *setname, int part_type, R } void -rule_context_add_rule_set(RuleContext *rc, const char *setname, int rule_type, RCRuleFunc append, RCNextRuleFunc next) +rule_context_add_rule_set(RuleContext *rc, const char *setname, GType rule_type, RCRuleFunc append, RCNextRuleFunc next) { struct _rule_set_map *map; diff --git a/filter/rule-context.h b/filter/rule-context.h index 6e7a7f9443..f2192f4596 100644 --- a/filter/rule-context.h +++ b/filter/rule-context.h @@ -85,14 +85,14 @@ typedef FilterRule * (*RCNextRuleFunc) (RuleContext *rc, FilterRule *rule, const struct _part_set_map { char *name; - int type; + GType type; RCPartFunc append; RCNextPartFunc next; }; struct _rule_set_map { char *name; - int type; + GType type; RCRuleFunc append; RCNextRuleFunc next; }; @@ -122,9 +122,9 @@ void rule_context_rank_rule (RuleContext *rc, FilterRule *rule, const char *sour int rule_context_get_rank_rule (RuleContext *rc, FilterRule *rule, const char *source); /* setup type for set parts */ -void rule_context_add_part_set (RuleContext *rc, const char *setname, int part_type, +void rule_context_add_part_set (RuleContext *rc, const char *setname, GType part_type, RCPartFunc append, RCNextPartFunc next); -void rule_context_add_rule_set (RuleContext *rc, const char *setname, int rule_type, +void rule_context_add_rule_set (RuleContext *rc, const char *setname, GType rule_type, RCRuleFunc append, RCNextRuleFunc next); /* uri's disappear/renamed externally */ |