comparison src/null/null.c @ 1628:0a3b3b6430b1

null: C99 initialisers
author William Pitcock <nenolod@atheme.org>
date Fri, 07 Sep 2007 05:00:21 -0500
parents 761e17b23e0c
children f6f5603a0954
comparison
equal deleted inserted replaced
1627:abe9f63c4e8b 1628:0a3b3b6430b1
238 return ELAPSED_TIME; 238 return ELAPSED_TIME;
239 } 239 }
240 240
241 OutputPlugin null_op = 241 OutputPlugin null_op =
242 { 242 {
243 NULL, 243 .description = "Null Output Plugin",
244 NULL, 244 .init = null_init,
245 "Null Output Plugin", 245 .about = null_about,
246 null_init, 246 .configure = null_configure,
247 NULL, /* cleanup */ 247 .open_audio = null_open,
248 null_about, 248 .write_audio = null_write,
249 null_configure, 249 .close_audio = null_close,
250 NULL, /* Get volume */ 250 .flush = null_flush,
251 NULL, /* Set volume */ 251 .pause = null_pause,
252 null_open, 252 .buffer_free = null_buffer_free,
253 null_write, 253 .buffer_playing = null_playing,
254 null_close, 254 .output_time = null_get_output_time,
255 null_flush, 255 .written_time = null_get_written_time,
256 null_pause,
257 null_buffer_free,
258 null_playing,
259 null_get_output_time,
260 null_get_written_time,
261 NULL /* tell */
262 }; 256 };
263 257
264 OutputPlugin *null_oplist[] = { &null_op, NULL }; 258 OutputPlugin *null_oplist[] = { &null_op, NULL };
265 259
266 DECLARE_PLUGIN(null, NULL, NULL, NULL, null_oplist, NULL, NULL, NULL, NULL); 260 DECLARE_PLUGIN(null, NULL, NULL, NULL, null_oplist, NULL, NULL, NULL, NULL);