changeset 1692:81ae3fcc9673

Automated merge with file:/home/ccr/audacious/plugins
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 07 Sep 2007 12:48:27 +0300
parents aa40f1404257 (current diff) 5489738a454f (diff)
children 62e89e392227
files src/cue/cuesheet.c
diffstat 4 files changed, 53 insertions(+), 86 deletions(-) [+]
line wrap: on
line diff
--- a/src/amidi-plug/amidi-plug.h	Fri Sep 07 12:46:01 2007 +0300
+++ b/src/amidi-plug/amidi-plug.h	Fri Sep 07 12:48:27 2007 +0300
@@ -86,35 +86,23 @@
 
 InputPlugin amidiplug_ip =
 {
-  NULL,					/* handle */
-  NULL,					/* filename */
-  "AMIDI-Plug " AMIDIPLUG_VERSION " (MIDI Player)", /* description */
-  amidiplug_init,			/* init */
-  amidiplug_aboutbox,			/* aboutbox */
-  amidiplug_configure,			/* configure */
-  amidiplug_is_our_file,		/* is_our_file */
-  NULL,					/* scan_dir */
-  amidiplug_play,			/* play_file */
-  amidiplug_stop,			/* stop */
-  amidiplug_pause,			/* pause */
-  amidiplug_seek,			/* seek */
-  NULL,					/* set_eq */
-  amidiplug_get_time,			/* get_time */
-  amidiplug_get_volume,			/* get_volume */
-  amidiplug_set_volume,			/* set_volume */
-  amidiplug_cleanup,			/* cleanup */
-  NULL,					/* get_vis_type */
-  NULL,					/* add_vis_pcm */
-  NULL,					/* set_info */
-  NULL,					/* set_info_text */
-  amidiplug_get_song_info,		/* get_song_info */
-  amidiplug_file_info_box,		/* file_info_box */
-  NULL,					/* output */
-  NULL,					/* get_song_tuple */
-  NULL,					/* set_song_tuple */
-  NULL,					/* set_status_buffering */
-  amidiplug_is_our_file_from_vfs,	/* is_our_file_from_vfs */
-  amidiplug_vfs_extensions		/* vfs_extensions */
+  .description = "AMIDI-Plug " AMIDIPLUG_VERSION " (MIDI Player)", /* description */
+  .init = amidiplug_init,			/* init */
+  .about = amidiplug_aboutbox,			/* aboutbox */
+  .configure = amidiplug_configure,			/* configure */
+  .is_our_file = amidiplug_is_our_file,		/* is_our_file */
+  .play_file = amidiplug_play,			/* play_file */
+  .stop = amidiplug_stop,			/* stop */
+  .pause = amidiplug_pause,			/* pause */
+  .seek = amidiplug_seek,			/* seek */
+  .get_time = amidiplug_get_time,			/* get_time */
+  .get_volume = amidiplug_get_volume,			/* get_volume */
+  .set_volume = amidiplug_set_volume,			/* set_volume */
+  .cleanup = amidiplug_cleanup,			/* cleanup */
+  .get_song_info = amidiplug_get_song_info,		/* get_song_info */
+  .file_info_box = amidiplug_file_info_box,		/* file_info_box */
+  .is_our_file_from_vfs = amidiplug_is_our_file_from_vfs,	/* is_our_file_from_vfs */
+  .vfs_extensions = amidiplug_vfs_extensions		/* vfs_extensions */
 };
 
 #endif /* !_I_AMIDIPLUG_H */
--- a/src/cdaudio-ng/cdaudio-ng.c	Fri Sep 07 12:46:01 2007 +0300
+++ b/src/cdaudio-ng/cdaudio-ng.c	Fri Sep 07 12:48:27 2007 +0300
@@ -91,31 +91,22 @@
 
 
 static InputPlugin inputplugin = {
-	NULL,
-	NULL,
-	"CD Audio Plugin NG",
-	cdaudio_init,
-	cdaudio_about,
-	cdaudio_configure,
-	cdaudio_is_our_file,
-	cdaudio_scan_dir,
-	cdaudio_play_file,
-	cdaudio_stop,
-	cdaudio_pause,
-	cdaudio_seek,
-	NULL,
-	cdaudio_get_time,
-	cdaudio_get_volume,
-	cdaudio_set_volume,
-	cdaudio_cleanup,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	cdaudio_get_song_info,
-	NULL,
-	NULL,
-	cdaudio_get_song_tuple
+	.description = "CD Audio Plugin NG",
+	.init = cdaudio_init,
+	.about = cdaudio_about,
+	.configure = cdaudio_configure,
+	.is_our_file = cdaudio_is_our_file,
+	.scan_dir = cdaudio_scan_dir,
+	.play_file = cdaudio_play_file,
+	.stop = cdaudio_stop,
+	.pause = cdaudio_pause,
+	.seek = cdaudio_seek,
+	.get_time = cdaudio_get_time,
+	.get_volume = cdaudio_get_volume,
+	.set_volume = cdaudio_set_volume,
+	.cleanup = cdaudio_cleanup,
+	.get_song_info = cdaudio_get_song_info,
+	.get_song_tuple = cdaudio_get_song_tuple
 };
 
 InputPlugin *cdaudio_iplist[] = { &inputplugin, NULL };
--- a/src/cue/cuesheet.c	Fri Sep 07 12:46:01 2007 +0300
+++ b/src/cue/cuesheet.c	Fri Sep 07 12:48:27 2007 +0300
@@ -103,7 +103,7 @@
 	.get_time = get_time,
 	.cleanup = cue_cleanup,		/* cleanup */
 	.get_song_info = get_song_info,	/* XXX get_song_info iface */
-	.get_tuple = get_tuple,
+	.get_song_tuple = get_tuple,
 };
 
 InputPlugin *cue_iplist[] = { &cue_ip, NULL };
--- a/src/sid/xs_init.c	Fri Sep 07 12:46:01 2007 +0300
+++ b/src/sid/xs_init.c	Fri Sep 07 12:48:27 2007 +0300
@@ -28,38 +28,26 @@
 
 
 InputPlugin xs_plugin_ip = {
-	NULL,			/* FILLED BY XMMS */
-	NULL,			/* FILLED BY XMMS */
-	XS_PACKAGE_STRING,	/* Plugin description */
-	xs_init,		/* Initialization */
-	xs_about,		/* Show aboutbox */
-	xs_configure,		/* Show/edit configuration */
-	xs_is_our_file,		/* Check file */
-	NULL,			/* Scan directory */
-	xs_play_file,		/* Play given file */
-	xs_stop,		/* Stop playing */
-	xs_pause,		/* Pause playing */
-	xs_seek,		/* Seek time */
-	NULL,			/* Set equalizer */
-	xs_get_time,		/* Get playing time */
-	NULL,			/* Get volume */
-	NULL,			/* Set volume */
-	xs_close,		/* Cleanup */
-	NULL,			/* OBSOLETE! */
-	NULL,			/* Send data to Visualization plugin */
-	NULL, NULL,		/* FILLED BY XMMS */
-	NULL,			/* Get song title and length */
-	xs_fileinfo,		/* Show file-information dialog */
-	NULL,			/* FILLED BY XMMS */
-	xs_get_song_tuple,	/* Get Tuple */
-	NULL,			/* Set Tuple */
-	NULL,			/* Buffering status */
-	xs_is_our_file_vfs,	/* VFS */
-	xs_sid_fmts,		/* File ext assist */
-	NULL,			/* ms accurate seek, mseek() */
-	NULL			/* Probe for tuple */
+	.description = XS_PACKAGE_STRING,	/* Plugin description */
+	.init = xs_init,			/* Initialization */
+	.cleanup = xs_close,			/* Cleanup */
+	.about = xs_about,			/* Show aboutbox */
+	.configure = xs_configure,		/* Show/edit configuration */
+
+	.play_file = xs_play_file,		/* Play given file */
+	.stop = xs_stop,			/* Stop playing */
+	.pause = xs_pause,			/* Pause playing */
+	.seek = xs_seek,			/* Seek time */
+	.get_time = xs_get_time,		/* Get playing time */
+
+	.file_info_box = xs_fileinfo,		/* Show file-information dialog */
+
+	.get_song_tuple = xs_get_song_tuple,		/* Get Tuple */
+	.is_our_file = xs_is_our_file,			/* Check file */
+	.is_our_file_from_vfs = xs_is_our_file_vfs,	/* VFS */
+	.vfs_extensions = xs_sid_fmts,			/* File ext assist */
 };
 
-InputPlugin *sid_iplist[] = { &xs_plugin_ip, NULL };
+static InputPlugin *sid_iplist[] = { &xs_plugin_ip, NULL };
 
 DECLARE_PLUGIN(sid, NULL, NULL, sid_iplist, NULL, NULL, NULL, NULL, NULL);