summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 171a92c)
raw | patch | inline | side by side (parent: 171a92c)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 5 Dec 2010 10:11:36 +0000 (11:11 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 5 Dec 2010 10:11:36 +0000 (11:11 +0100) |
src/plugin.c | patch | blob | history | |
src/plugin.h | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index a298d35069f7d6183b232099ec74891eb5b55dde..0f360c0f3eb5a0f952440483da19ec9ead4fd3fd 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
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 bc873b08c939bc892982b944c62f9085f80f199a..937eebed4e1cb24da6e18d3971566cbe3a8c18ff 100644 (file)
--- a/src/plugin.h
+++ b/src/plugin.h
/* "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);