changeset 3688:8ab4cd5c6462

multifile plugins :(
author William Pitcock <nenolod@atheme.org>
date Tue, 02 Oct 2007 21:47:17 -0500
parents 12e11b15b549
children ec4b447eb8eb
files src/audacious/plugin.h
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/plugin.h	Tue Oct 02 21:41:06 2007 -0500
+++ b/src/audacious/plugin.h	Tue Oct 02 21:47:17 2007 -0500
@@ -289,11 +289,14 @@
 #define aud_cfg_db_get_double		_audvt->cfg_db_get_double
 #define aud_cfg_db_unset_key		_audvt->cfg_db_unset_key
 
+/* for multi-file plugins :( */
+extern struct _AudaciousFuncVTable1 *_audvt;
+
 #define DECLARE_PLUGIN(name, init, fini, ...) \
 	G_BEGIN_DECLS \
 	static PluginHeader _pluginInfo = { PLUGIN_MAGIC, __AUDACIOUS_PLUGIN_API__, \
 		(gchar *)#name, init, fini, NULL, __VA_ARGS__ }; \
-	static struct _AudaciousFuncVTable1 *_audvt = NULL; \
+	struct _AudaciousFuncVTable1 *_audvt = NULL; \
 	G_MODULE_EXPORT PluginHeader *get_plugin_info(struct _AudaciousFuncVTable1 *_vt) { \
 		_audvt = _vt; \
 		return &_pluginInfo; \