changeset 1610:d03b7e323ac0

tonegen: C99 struct initialisers
author William Pitcock <nenolod@atheme.org>
date Fri, 07 Sep 2007 03:55:27 -0500
parents 88878ed02ca0
children f49d1284079a
files src/tonegen/tonegen.c
diffstat 1 files changed, 9 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/src/tonegen/tonegen.c	Sun Sep 02 23:08:33 2007 +0300
+++ b/src/tonegen/tonegen.c	Fri Sep 07 03:55:27 2007 -0500
@@ -243,30 +243,15 @@
 
 static InputPlugin tone_ip =
 {
-	NULL,
-	NULL,
-	"Tone Generator", /* Description */
-	tone_init,
-	tone_about,
-	NULL,
-	tone_is_our_file,
-	NULL,
-	tone_play,
-	tone_stop,
-	tone_pause,
-	NULL,
-	NULL,
-	tone_get_time,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	tone_song_info,
-	NULL,
-	NULL
+	.description = "Tone Generator",
+	.init = tone_init,
+	.about = tone_about,
+	.is_our_file = tone_is_our_file,
+	.play_file = tone_play,
+	.stop = tone_stop,
+	.pause = tone_pause,
+	.get_time = tone_get_time,
+	.get_song_info = tone_song_info,
 };
 
 InputPlugin *tonegen_iplist[] = { &tone_ip, NULL };