changeset 1717:c3375df9efd5

C99 initialisers. Fixes bugs #10, #11.
author William Pitcock <nenolod@atheme.org>
date Mon, 17 Sep 2007 09:05:53 -0500
parents fd393aeaad23
children 892deefba58d f9856ca98943
files src/sun/sun.c
diffstat 1 files changed, 16 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/src/sun/sun.c	Sun Sep 16 16:08:41 2007 +0200
+++ b/src/sun/sun.c	Mon Sep 17 09:05:53 2007 -0500
@@ -29,25 +29,22 @@
 
 OutputPlugin sun_op =
 {
-	NULL,
-	NULL,
-	"BSD/Sun Output Plugin",	/* Description */
-	sun_init,
-	sun_cleanup,
-	sun_about,
-	sun_configure,
-	sun_get_volume,
-	sun_set_volume,
-	sun_open,
-	sun_write,
-	sun_close,
-	sun_flush,
-	sun_pause,
-	sun_free,
-	sun_playing,
-	sun_output_time,
-	sun_written_time,
-	NULL
+	.description = "BSD/Sun Output Plugin",	/* Description */
+	.init = sun_init,
+	.cleanup = sun_cleanup,
+	.about = sun_about,
+	.configure = sun_configure,
+	.get_volume = sun_get_volume,
+	.set_volume = sun_set_volume,
+	.open_audio = sun_open,
+	.write_audio = sun_write,
+	.close_audio = sun_close,
+	.flush = sun_flush,
+	.pause = sun_pause,
+	.buffer_free = sun_free,
+	.buffer_playing = sun_playing,
+	.output_time = sun_output_time,
+	.written_time = sun_written_time,
 };
 
 OutputPlugin *sun_oplist[] = { &sun_op, NULL };