comparison src/OSS/OSS.c @ 1067:beba7968d2da trunk

[svn] - update OSS plugin to plugin API v2
author nenolod
date Thu, 24 May 2007 12:15:22 -0700
parents d124034ebea3
children c1e1c894fa0b
comparison
equal deleted inserted replaced
1066:d1f8b0594f37 1067:beba7968d2da
26 #include <stdlib.h> 26 #include <stdlib.h>
27 27
28 OutputPlugin oss_op = { 28 OutputPlugin oss_op = {
29 NULL, 29 NULL,
30 NULL, 30 NULL,
31 NULL, /* Description */ 31 "OSS Output Plugin", /* Description */
32 oss_init, 32 oss_init,
33 oss_cleanup, 33 oss_cleanup,
34 oss_about, 34 oss_about,
35 oss_configure, 35 oss_configure,
36 oss_get_volume, 36 oss_get_volume,
45 oss_get_output_time, 45 oss_get_output_time,
46 oss_get_written_time, 46 oss_get_written_time,
47 oss_tell 47 oss_tell
48 }; 48 };
49 49
50 OutputPlugin * 50 OutputPlugin *oss_oplist[] = { &oss_op, NULL };
51 get_oplugin_info(void)
52 {
53 oss_op.description = g_strdup_printf(_("OSS Output Plugin"));
54 return &oss_op;
55 }
56 51
52 DECLARE_PLUGIN(OSS, NULL, NULL, NULL, oss_oplist, NULL, NULL, NULL);
57 53
58 void oss_cleanup(void) 54 void oss_cleanup(void)
59 { 55 {
60 g_free(oss_op.description); 56 g_free(oss_op.description);
61 oss_op.description = NULL; 57 oss_op.description = NULL;