changeset 1144:359cd2c10405 trunk

[svn] - rootvis: convert to plugin2 architecture
author nenolod
date Mon, 28 May 2007 03:05:08 -0700
parents 48aba1f78016
children 40c1ffbe34d0
files ChangeLog src/rootvis/rootvis.c
diffstat 2 files changed, 13 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon May 28 03:03:18 2007 -0700
+++ b/ChangeLog	Mon May 28 03:05:08 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-28 10:03:18 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2452]
+  - rocklight: convert to plugin2 architecture.
+  
+  trunk/src/rocklight/rocklight.c |    6 +++---
+  1 file changed, 3 insertions(+), 3 deletions(-)
+
+
 2007-05-28 10:01:41 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2450]
   - spectrum: convert to plugin2 architecture.
--- a/src/rootvis/rootvis.c	Mon May 28 03:03:18 2007 -0700
+++ b/src/rootvis/rootvis.c	Mon May 28 03:05:08 2007 -0700
@@ -35,17 +35,16 @@
 	rootvis_cleanup,        // Called when plugin is disabled
 	NULL,//rootvis_about,          // Show the about box
 	rootvis_configure,      // Show the configure box
-	0,                     // Called to disable plugin, filled in by xmms
+	NULL,                     // Called to disable plugin, filled in by xmms
 	rootvis_playback_start, // Called when playback starts
 	rootvis_playback_stop,  // Called when playback stops
-	0,                     // Render the PCM data, must return quickly
+	NULL,                     // Render the PCM data, must return quickly
 	rootvis_render_freq     // Render the freq data, must return quickly
 };
 
-// XMMS entry point
-VisPlugin *get_vplugin_info(void) {
-	return &rootvis_vtable;
-}
+VisPlugin *rootvis_vplist[] = { &rootvis_vtable, NULL };
+
+DECLARE_PLUGIN(rootvis, NULL, NULL, NULL, NULL, NULL, NULL, rootvis_vplist);
 
 // X related
 struct rootvis_x {