Mercurial > audlegacy-plugins
diff src/cdaudio/cdaudio.c @ 1091:daa0323924d6 trunk
[svn] - cdaudio: convert to plugin API v2
author | nenolod |
---|---|
date | Thu, 24 May 2007 23:18:05 -0700 |
parents | 914c96de3244 |
children | 50505f91e6c7 |
line wrap: on
line diff
--- a/src/cdaudio/cdaudio.c Thu May 24 23:16:36 2007 -0700 +++ b/src/cdaudio/cdaudio.c Thu May 24 23:18:05 2007 -0700 @@ -150,6 +150,10 @@ get_song_tuple }; +InputPlugin *cdda_iplist[] = { &cdda_ip, NULL }; + +DECLARE_PLUGIN(cdda, NULL, NULL, cdda_iplist, NULL, NULL, NULL, NULL); + CDDAConfig cdda_cfg; static struct { @@ -180,15 +184,6 @@ /* Time to delay stop command in 1/10 second */ #define STOP_DELAY 20 -InputPlugin * -get_iplugin_info(void) -{ - cdda_ip.description = g_strdup_printf(_("CD Audio Plugin")); - return &cdda_ip; -} - - - #ifdef BEEP_CDROM_SOLARIS /* * Lowlevel cdrom access, Solaris style (Solaris, Linux)