diff --git a/src/plugin.h b/src/plugin.h
index 6681efdbda86e55ea1a2d5582a6ca56ab81a67c8..5e216bc5513d69a2c7d2a3dbee320f0b79f3a148 100644 (file)
--- a/src/plugin.h
+++ b/src/plugin.h
/* ncmpc (Ncurses MPD Client)
- * (c) 2004-2009 The Music Player Daemon Project
+ * (c) 2004-2010 The Music Player Daemon Project
* Project homepage: http://musicpd.org
* This program is free software; you can redistribute it and/or modify
* When a plugin cycle is finished, this function is called. In any
* case, plugin_stop() has to be called to free all memory.
*
- * @param result the plugin's output (stdout) on success; NULL on failure
+ * @param result the plugin's output (stdout) on success; summary of all error
+ * messages on failure as determined by success
+ * @param success result of the plugin cycle; true if result is meaningful
+ * output, false if result contains error messages
+ * @param plugin_name the name of the plugin which succeeded; becomes invalid
+ * when plugin_stop is called (i.e. strdup it if you need it afterwards).
* @param data the caller defined pointer passed to plugin_run()
*/
-typedef void (*plugin_callback_t)(const GString *result, void *data);
+typedef void (*plugin_callback_t)(const GString *result, const bool success,
+ const char *plugin_name, void *data);
/**
* This object represents a cycle through all available plugins, until