changeset 1097:baaf67022119 trunk

[svn] - amidi-plug: convert to plugin API v2
author nenolod
date Thu, 24 May 2007 23:30:47 -0700
parents 8b02086025f9
children 334afe46961c
files ChangeLog src/amidi-plug/amidi-plug.c src/amidi-plug/amidi-plug.h
diffstat 3 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu May 24 23:25:59 2007 -0700
+++ b/ChangeLog	Thu May 24 23:30:47 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-25 06:25:59 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2358]
+  - adplug: convert to plugin API v2
+  
+  trunk/src/adplug/adplug-xmms.cc |    8 +++-----
+  1 file changed, 3 insertions(+), 5 deletions(-)
+
+
 2007-05-25 06:24:14 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2356]
   - timidity: convert to plugin API v2
--- a/src/amidi-plug/amidi-plug.c	Thu May 24 23:25:59 2007 -0700
+++ b/src/amidi-plug/amidi-plug.c	Thu May 24 23:30:47 2007 -0700
@@ -20,13 +20,9 @@
 
 #include "amidi-plug.h"
 
+InputPlugin *amidiplug_iplist[] = { &amidiplug_ip, NULL };
 
-InputPlugin *get_iplugin_info(void)
-{
-  amidiplug_ip.description = g_strdup_printf(N_("AMIDI-Plug %s (MIDI Player)"), AMIDIPLUG_VERSION);
-  return &amidiplug_ip;
-}
-
+DECLARE_PLUGIN(amidi-plug, NULL, NULL, amidiplug_iplist, NULL, NULL, NULL, NULL);
 
 static gboolean amidiplug_detect_by_content( gchar * filename , VFSFile * fp )
 {
--- a/src/amidi-plug/amidi-plug.h	Thu May 24 23:25:59 2007 -0700
+++ b/src/amidi-plug/amidi-plug.h	Thu May 24 23:30:47 2007 -0700
@@ -86,7 +86,7 @@
 {
   NULL,					/* handle */
   NULL,					/* filename */
-  NULL,					/* description */
+  "AMIDI-Plug" AMIDIPLUG_VERSION " (MIDI Player)", /* description */
   amidiplug_init,			/* init */
   amidiplug_aboutbox,			/* aboutbox */
   amidiplug_configure,			/* configure */