summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0ac5ded)
raw | patch | inline | side by side (parent: 0ac5ded)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 27 Mar 2007 14:31:01 +0000 (16:31 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 27 Mar 2007 14:31:01 +0000 (16:31 +0200) |
src/configfile.c | patch | blob | history | |
src/plugin.c | patch | blob | history | |
src/plugin.h | patch | blob | history |
diff --git a/src/configfile.c b/src/configfile.c
index d636c8c70f55249f9d3e6f8b7217c3a7ab3bcbbf..eca3dfc09fe1a2e00b4050d65fcf261631ac715b 100644 (file)
--- a/src/configfile.c
+++ b/src/configfile.c
free (this);
break;
}
-}
+} /* void cf_unregister */
void cf_register (const char *type,
int (*callback) (const char *, const char *),
diff --git a/src/plugin.c b/src/plugin.c
index 85a54edf2cefb3eb1fa1a7e80584cc2d889eba70..60cd37f481541fb29d51e350279b26790610361e 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
return (register_callback (&list_log, name, (void *) callback));
} /* int plugin_register_log */
+int plugin_unregister_config (const char *name)
+{
+ cf_unregister (name);
+ return (0);
+} /* int plugin_unregister_config */
+
int plugin_unregister_init (const char *name)
{
return (plugin_unregister (list_init, name));
diff --git a/src/plugin.h b/src/plugin.h
index f88bc48ab2d93970af4e64a1448cd18f0ac411b6..ba6cde284affa0115bede3cc0272ca2c32525be6 100644 (file)
--- a/src/plugin.h
+++ b/src/plugin.h
int plugin_register_log (char *name,
void (*callback) (int, const char *));
+int plugin_unregister_config (const char *name);
int plugin_unregister_init (const char *name);
int plugin_unregister_read (const char *name);
int plugin_unregister_write (const char *name);