changeset 3231:06baa146fc1d trunk

- bump PAPI version to 4 due to DiscoveryPlugin
author William Pitcock <nenolod@atheme-project.org>
date Fri, 03 Aug 2007 20:39:35 -0500
parents e91acf24afbc
children 2453bf125b4f
files src/audacious/plugin.h src/audacious/pluginenum.c
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/plugin.h	Thu Aug 02 02:03:35 2007 -0500
+++ b/src/audacious/plugin.h	Fri Aug 03 20:39:35 2007 -0500
@@ -50,7 +50,7 @@
 #define LOWLEVEL_PLUGIN(x) ((LowlevelPlugin *)(x))
 
 #define __AUDACIOUS_NEWVFS__
-#define __AUDACIOUS_PLUGIN_API__ 3
+#define __AUDACIOUS_PLUGIN_API__ 4
 #define __AUDACIOUS_INPUT_PLUGIN_API__ 4
 
 typedef enum {
--- a/src/audacious/pluginenum.c	Thu Aug 02 02:03:35 2007 -0500
+++ b/src/audacious/pluginenum.c	Fri Aug 03 20:39:35 2007 -0500
@@ -228,11 +228,9 @@
     if (header->magic != PLUGIN_MAGIC)
         return plugin2_dispose(module, "plugin <%s> discarded, invalid module magic", filename);
 
-#if 0
     if (header->api_version != __AUDACIOUS_PLUGIN_API__)
         return plugin2_dispose(module, "plugin <%s> discarded, wanting API version %d, we implement API version %d",
                                filename, header->api_version, __AUDACIOUS_PLUGIN_API__);
-#endif
 
     if (header->init)
         header->init();