From: Florian Forster Date: Sun, 5 Dec 2010 10:11:36 +0000 (+0100) Subject: src/plugin.[ch]: Pass the user data to registered "missing" functions. X-Git-Tag: collectd-5.0.0-beta0~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5b0fc9e567d8d386d4bba2f80a20dc6cb2351f79;p=collectd.git src/plugin.[ch]: Pass the user data to registered "missing" functions. --- diff --git a/src/plugin.c b/src/plugin.c index a298d350..0f360c0f 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -1358,7 +1358,7 @@ int plugin_dispatch_missing (const value_list_t *vl) /* {{{ */ cf = le->value; callback = cf->cf_callback; - status = (*callback) (vl); + status = (*callback) (vl, &cf->cf_udata); if (status != 0) { if (status < 0) diff --git a/src/plugin.h b/src/plugin.h index bc873b08..937eebed 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -173,7 +173,7 @@ typedef int (*plugin_flush_cb) (cdtime_t timeout, const char *identifier, /* "missing" callback. Returns less than zero on failure, zero if other * callbacks should be called, greater than zero if no more callbacks should be * called. */ -typedef int (*plugin_missing_cb) (const value_list_t *); +typedef int (*plugin_missing_cb) (const value_list_t *, user_data_t *); typedef void (*plugin_log_cb) (int severity, const char *message, user_data_t *); typedef int (*plugin_shutdown_cb) (void);