Mercurial > audlegacy-plugins
comparison src/flacng/plugin.c @ 1619:6ee8e5653f7b
flacng: C99 initialisers
| author | William Pitcock <nenolod@atheme.org> |
|---|---|
| date | Fri, 07 Sep 2007 04:23:30 -0500 |
| parents | 195b5657303e |
| children | aee4ebea943a |
comparison
equal
deleted
inserted
replaced
| 1618:177aec41b238 | 1619:6ee8e5653f7b |
|---|---|
| 28 #include "debug.h" | 28 #include "debug.h" |
| 29 | 29 |
| 30 static gchar *flac_fmts[] = { "flac", NULL }; | 30 static gchar *flac_fmts[] = { "flac", NULL }; |
| 31 | 31 |
| 32 InputPlugin flac_ip = { | 32 InputPlugin flac_ip = { |
| 33 NULL, | 33 .description = "FLACng Audio Plugin", |
| 34 NULL, | 34 .init = flac_init, |
| 35 "FLACng Audio Plugin", | 35 .about = flac_aboutbox, |
| 36 flac_init, | 36 .is_our_file = flac_is_our_file, |
| 37 flac_aboutbox, | 37 .play_file = flac_play_file, |
| 38 NULL, | 38 .stop = flac_stop, |
| 39 flac_is_our_file, | 39 .pause = flac_pause, |
| 40 NULL, | 40 .seek = flac_seek, |
| 41 flac_play_file, | 41 .get_song_info = flac_get_song_info, |
| 42 flac_stop, | 42 .get_song_tuple = flac_get_song_tuple, // get a tuple |
| 43 flac_pause, | 43 .is_our_file_from_vfs = flac_is_our_fd, // version of is_our_file which is handed an FD |
| 44 flac_seek, | 44 .vfs_extensions = flac_fmts // vector of fileextensions allowed by the plugin |
| 45 NULL, | |
| 46 NULL, | |
| 47 NULL, | |
| 48 NULL, | |
| 49 NULL, | |
| 50 NULL, | |
| 51 NULL, | |
| 52 NULL, | |
| 53 NULL, | |
| 54 flac_get_song_info, | |
| 55 NULL, | |
| 56 NULL, | |
| 57 flac_get_song_tuple, // get a tuple | |
| 58 NULL, | |
| 59 NULL, // write a tuple back to a file as a tag | |
| 60 flac_is_our_fd, // version of is_our_file which is handed an FD | |
| 61 flac_fmts // vector of fileextensions allowed by the plugin | |
| 62 }; | 45 }; |
| 63 | 46 |
| 64 InputPlugin *flac_iplist[] = { &flac_ip, NULL }; | 47 InputPlugin *flac_iplist[] = { &flac_ip, NULL }; |
| 65 | 48 |
| 66 DECLARE_PLUGIN(flacng, NULL, NULL, flac_iplist, NULL, NULL, NULL, NULL, NULL); | 49 DECLARE_PLUGIN(flacng, NULL, NULL, flac_iplist, NULL, NULL, NULL, NULL, NULL); |
