Mercurial > audlegacy-plugins
diff src/blur_scope/blur_scope.c @ 1141:782f22f642d8 trunk
[svn] - blur_scope: convert to plugin2 architecture.
author | nenolod |
---|---|
date | Mon, 28 May 2007 02:59:10 -0700 |
parents | 2cf4d0182a86 |
children | 761e17b23e0c |
line wrap: on
line diff
--- 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) {