changeset 1613:4eeeef9adab3

sexypsf: C99 initialisers
author William Pitcock <nenolod@atheme.org>
date Fri, 07 Sep 2007 04:12:39 -0500
parents 4c7d549bb593
children cf7124d464f9
files src/sexypsf/plugin.c
diffstat 1 files changed, 10 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/src/sexypsf/plugin.c	Fri Sep 07 04:04:03 2007 -0500
+++ b/src/sexypsf/plugin.c	Fri Sep 07 04:12:39 2007 -0500
@@ -263,35 +263,16 @@
 
 InputPlugin sexypsf_ip =
 {
-    NULL,
-    NULL,
-    "PSF Audio Plugin",
-    NULL,
-    NULL,
-    NULL,
-    NULL,
-    NULL,
-    sexypsf_xmms_play,
-    sexypsf_xmms_stop,
-    sexypsf_xmms_pause,
-    sexypsf_xmms_seek,
-    NULL,
-    sexypsf_xmms_gettime,
-    NULL,
-    NULL,
-    NULL,
-    NULL,
-    NULL,
-    NULL,
-    NULL,
-    sexypsf_xmms_getsonginfo,
-    NULL,
-    NULL,
-    get_tuple_psf,
-    NULL,
-    NULL,
-    is_our_fd,
-    sexypsf_fmts,
+    .description = "PSF Audio Plugin",
+    .play_file = sexypsf_xmms_play,
+    .stop = sexypsf_xmms_stop,
+    .pause = sexypsf_xmms_pause,
+    .seek = sexypsf_xmms_seek,
+    .get_time = sexypsf_xmms_gettime,
+    .get_song_info = sexypsf_xmms_getsonginfo,
+    .get_song_tuple = get_tuple_psf,
+    .is_our_file_from_vfs = is_our_fd,
+    .vfs_extensions = sexypsf_fmts,
 };
 
 InputPlugin *sexypsf_iplist[] = { &sexypsf_ip, NULL };