X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Fplugin_mock.c;h=b6efa3ad788387528074efc38b258b6ef309b6dd;hb=50345eec33951b964e2829e83c30399b71f2baba;hp=f7bf1c016ad894f926003ad179112a6196edd161;hpb=5bf93412e903fb36943088e711031a013495ce11;p=collectd.git diff --git a/src/daemon/plugin_mock.c b/src/daemon/plugin_mock.c index f7bf1c01..b6efa3ad 100644 --- a/src/daemon/plugin_mock.c +++ b/src/daemon/plugin_mock.c @@ -30,6 +30,33 @@ kstat_ctl_t *kc = NULL; #endif /* HAVE_LIBKSTAT */ +char hostname_g[] = "example.com"; + +int plugin_register_complex_config (const char *type, int (*callback) (oconfig_item_t *)) +{ + return ENOTSUP; +} + +int plugin_register_init (const char *name, plugin_init_cb callback) +{ + return ENOTSUP; +} + +int plugin_register_read (const char *name, int (*callback) (void)) +{ + return ENOTSUP; +} + +int plugin_register_shutdown (const char *name, int (*callback) (void)) +{ + return ENOTSUP; +} + +int plugin_dispatch_values (value_list_t const *vl) +{ + return ENOTSUP; +} + void plugin_log (int level, char const *format, ...) { char buffer[1024]; @@ -42,4 +69,9 @@ void plugin_log (int level, char const *format, ...) printf ("plugin_log (%i, \"%s\");\n", level, buffer); } +cdtime_t plugin_get_interval (void) +{ + return TIME_T_TO_CDTIME_T (10); +} + /* vim: set sw=2 sts=2 et : */