From 5b0fc9e567d8d386d4bba2f80a20dc6cb2351f79 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 5 Dec 2010 11:11:36 +0100 Subject: [PATCH] src/plugin.[ch]: Pass the user data to registered "missing" functions. --- src/plugin.c | 2 +- src/plugin.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2