summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 074046d)
raw | patch | inline | side by side (parent: 074046d)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 20 May 2007 14:24:22 +0000 (16:24 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 20 May 2007 14:24:22 +0000 (16:24 +0200) |
This has been removed in rc7.
debian/examples/myplugin.c | patch | blob | history |
index 2b3212a01f64f75f8237abe86321416f295655cb..ab7417b61048c7f541178e0a8b0844d9ac11e181 100644 (file)
* This function is called after loading the plugin to register it with
* collectd.
*/
-void module_register (modreg_e load)
+void module_register (void)
{
plugin_register_log ("myplugin", my_log);
-
- if (load & MR_DATASETS)
- plugin_register_data_set (&ds);
-
- if (load & MR_READ)
- plugin_register_read ("myplugin", my_read);
-
+ plugin_register_data_set (&ds);
+ plugin_register_read ("myplugin", my_read);
plugin_register_init ("myplugin", my_init);
plugin_register_write ("myplugin", my_write);
plugin_register_shutdown ("myplugin", my_shutdown);