Subject: Audacious Plugin V2 API Support

From: Joker
Date: Sun May 27 02:31:55 2007

To: UADE-Developer-discussion
I've did a small patch for the new Audacious plugin v2 API:

[url]http://www.netswarm.net/misc/uade-audacious-plugin2-support.patch[/url]

It's really trivial and uses __AUDACIOUS_PLUGIN_API__ defines to support
old and new versions. 

Patch is based on todays CVS checkout.

[code:1:cb459ced4a]diff -ruN uade.orig/src/frontends/audacious/plugin.c uade/src/frontends/audacious/plugin.c
--- uade.orig/src/frontends/audacious/plugin.c  2007-05-27 03&#58;58&#58;59.000000000 +0200
+++ uade/src/frontends/audacious/plugin.c       2007-05-27 04&#58;19&#58;19.000000000 +0200
@@ -84,6 +84,11 @@
 static InputPlugin *playhandle = &amp;uade_ip;
 #endif
 
+#if __AUDACIOUS_PLUGIN_API__ &gt;= 2
+InputPlugin *uade_iplist&#91;&#93; = &#123; &amp;uade_ip, NULL &#125;;
+DECLARE_PLUGIN&#40;uade, NULL, NULL, uade_iplist, NULL, NULL, NULL, NULL&#41;;
+#endif
+
 static const AFormat sample_format = FMT_S16_NE;
 
 /* Definition of trigger type&#58;
@@ -275,10 +280,12 @@

 /* this function is first called by xmms. returns pointer to plugin table */
+#if __AUDACIOUS_PLUGIN_API__ &lt; 2
 InputPlugin *get_iplugin_info&#40;void&#41;
 &#123;
   return &amp;uade_ip;
 &#125;
+#endif

 /* xmms initializes uade by calling this function */
[/code:1:cb459ced4a]

---

From: shd
Date: Sun May 27 13:57:40 2007

To: UADE-Developer-discussion
[quote:8929ccd097="Joker"]I've did a small patch for the new Audacious plugin v2 API:[/quote:8929ccd097]
Thanks. Applied to CVS. Who should I credit in the change log? Real Name &lt;email@address&gt; is the preferred format.

---

From: Joker
Date: Sun May 27 14:07:44 2007

To: UADE-Developer-discussion
Christian Birchinger &lt;[email-masked]&gt;