Mercurial > audlegacy-plugins
diff src/spectrum/spectrum.c @ 1142:b10c821f0b4e trunk
[svn] - spectrum: convert to plugin2 architecture.
| author | nenolod |
|---|---|
| date | Mon, 28 May 2007 03:01:41 -0700 |
| parents | 2cf4d0182a86 |
| children | a33da9237bed |
line wrap: on
line diff
--- a/src/spectrum/spectrum.c Mon May 28 02:59:10 2007 -0700 +++ b/src/spectrum/spectrum.c Mon May 28 03:01:41 2007 -0700 @@ -62,7 +62,7 @@ VisPlugin fsanalyzer_vp = { NULL, NULL, - "Spectrum Analyzer " VERSION, + "Spectrum Analyzer", 0, 1, fsanalyzer_init, /* init */ @@ -76,9 +76,9 @@ fsanalyzer_render_freq /* render_freq */ }; -VisPlugin *get_vplugin_info(void) { - return &fsanalyzer_vp; -} +VisPlugin *spectrum_vplist[] = { &fsanalyzer_vp, NULL }; + +DECLARE_PLUGIN(spectrum, NULL, NULL, NULL, NULL, NULL, NULL, spectrum_vplist); static void fsanalyzer_destroy_cb(GtkWidget *w,gpointer data) { fsanalyzer_vp.disable_plugin(&fsanalyzer_vp);
