diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-12 19:18:21 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-12 19:18:21 +0000 |
| commit | 1045079482453424f8320de99639390e3020eb72 (patch) | |
| tree | b15a4e7f21b4f21f668beb780127226f216d3e56 /plugins/resistance | |
| parent | 9ea78a4eb0255e8cca6258e5ceb4bfd3e9e9d59e (diff) | |
adjust for changes to the parsing api.
split the menu into its own file.
Diffstat (limited to 'plugins/resistance')
| -rw-r--r-- | plugins/resistance/resistance.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/resistance/resistance.c b/plugins/resistance/resistance.c index 8a787603..f5e68052 100644 --- a/plugins/resistance/resistance.c +++ b/plugins/resistance/resistance.c @@ -10,7 +10,7 @@ static int win_resistance; static int edge_resistance; -static void parse_xml(xmlDocPtr doc, xmlNodePtr node, void *d) +static void parse_xml(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, void *d) { xmlNodePtr n; @@ -21,11 +21,11 @@ static void parse_xml(xmlDocPtr doc, xmlNodePtr node, void *d) edge_resistance = parse_int(doc, n); } -void plugin_setup_config() +void plugin_setup_config(ObParseInst *i) { win_resistance = edge_resistance = DEFAULT_RESISTANCE; - parse_register("resistance", parse_xml, NULL); + parse_register(i, "resistance", parse_xml, NULL); } static void resist_move(ObClient *c, int *x, int *y) |
