changeset 1141:782f22f642d8 trunk

[svn] - blur_scope: convert to plugin2 architecture.
author nenolod
date Mon, 28 May 2007 02:59:10 -0700
parents 054fa57ecfb1
children b10c821f0b4e
files ChangeLog src/blur_scope/blur_scope.c
diffstat 2 files changed, 12 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon May 28 02:57:42 2007 -0700
+++ b/ChangeLog	Mon May 28 02:59:10 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-28 09:57:42 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2446]
+  - rovascope: convert to plugin2 architecture.
+  
+  trunk/src/rovascope/plugin.c |    8 +++-----
+  1 file changed, 3 insertions(+), 5 deletions(-)
+
+
 2007-05-28 09:56:10 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2444]
   - projectm: convert to plugin2 architecture. now SVN users have milkdrop back.
--- a/src/blur_scope/blur_scope.c	Mon May 28 02:57:42 2007 -0700
+++ b/src/blur_scope/blur_scope.c	Mon May 28 02:59:10 2007 -0700
@@ -68,7 +68,7 @@
 VisPlugin bscope_vp = {
     NULL,
     NULL,
-    NULL,                       /* description */
+    "Blur Scope",                       /* description */
     1,                          /* Number of PCM channels wanted */
     0,                          /* Number of freq channels wanted */
     bscope_init,                /* init */
@@ -82,12 +82,9 @@
     NULL                        /* render_freq */
 };
 
-VisPlugin *
-get_vplugin_info(void)
-{
-    bscope_vp.description = g_strdup("Blur Scope");
-    return &bscope_vp;
-}
+VisPlugin *bscope_vplist[] = { &bscope_vp, NULL };
+
+DECLARE_PLUGIN(bscope, NULL, NULL, NULL, NULL, NULL, NULL, bscope_vplist);
 
 #define WIDTH 256
 #define HEIGHT 128
@@ -225,8 +222,6 @@
 static void
 bscope_cleanup(void)
 {
-    g_free(bscope_vp.description);
-    bscope_vp.description = NULL;
     if (window)
         gtk_widget_destroy(window);
     if (bg_pixmap) {