changeset 1644:c0463e51c338

projectm: C99
author William Pitcock <nenolod@atheme.org>
date Fri, 07 Sep 2007 05:56:30 -0500
parents 03f4d3fb9d22
children 12425194a0fb
files src/projectm/main.c
diffstat 1 files changed, 11 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/projectm/main.c	Fri Sep 07 05:55:15 2007 -0500
+++ b/src/projectm/main.c	Fri Sep 07 05:56:30 2007 -0500
@@ -73,20 +73,17 @@
 
 // Callback functions
 VisPlugin projectM_vtable = {
-  NULL, // Handle, filled in by xmms
-  NULL, // Filename, filled in by xmms
-  "projectM v0.99",       // description
-  2, // # of PCM channels for render_pcm()
-  0, // # of freq channels wanted for render_freq()
-  projectM_xmms_init,     // Called when plugin is enabled
-  projectM_cleanup,        // Called when plugin is disabled
-  projectM_about,          // Show the about box
-  projectM_configure,      // Show the configure box
-  NULL,                     // Called to disable plugin, filled in by xmms
-  projectM_playback_start, // Called when playback starts
-  projectM_playback_stop,  // Called when playback stops
-  projectM_render_pcm,      // Render the PCM data, must return quickly
-  projectM_render_freq     // Render the freq data, must return quickly
+  .description = "projectM v0.99",       // description
+  .num_pcm_chs_wanted = 2, // # of PCM channels for render_pcm()
+  .num_freq_chs_wanted = 0, // # of freq channels wanted for render_freq()
+  .init = projectM_xmms_init,     // Called when plugin is enabled
+  .cleanup = projectM_cleanup,        // Called when plugin is disabled
+  .about = projectM_about,          // Show the about box
+  .configure = projectM_configure,      // Show the configure box
+  .playback_start = projectM_playback_start, // Called when playback starts
+  .playback_stop = projectM_playback_stop,  // Called when playback stops
+  .render_pcm = projectM_render_pcm,      // Render the PCM data, must return quickly
+  .render_freq = projectM_render_freq     // Render the freq data, must return quickly
 };
 
 VisPlugin *projectM_vplist[] = { &projectM_vtable, NULL };