Mercurial > audlegacy-plugins
annotate src/OSS4/OSS4.c @ 3085:ac0af6b39272
Introduce new GIO plugin to buildsystem. stdio is now deprecated.
Thoughts:
- getc()/ungetc() should be moved to VFS core now
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Wed, 29 Apr 2009 20:58:36 -0500 |
parents | 9ec8a613a1d6 |
children |
rev | line source |
---|---|
1214
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
1 /* BMP - Cross-platform multimedia player |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
2 * Copyright (C) 2003-2004 BMP development team. |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
3 * |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
4 * Based on XMMS: |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
5 * Copyright (C) 1998-2003 XMMS development team. |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
6 * |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
7 * This program is free software; you can redistribute it and/or modify |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
8 * it under the terms of the GNU General Public License as published by |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
9 * the Free Software Foundation; either version 2 of the License, or |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
10 * (at your option) any later version. |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
11 * |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
12 * This program is distributed in the hope that it will be useful, |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
15 * GNU General Public License for more details. |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
16 * |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
17 * You should have received a copy of the GNU General Public License |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
18 * along with this program; if not, write to the Free Software |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
20 */ |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
21 |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
22 #include "OSS4.h" |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
23 |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
24 #include <glib.h> |
2971
3134a0987162
- changed include path from audacious to audlegacy.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
2695
diff
changeset
|
25 #include <audlegacy/plugin.h> |
3134a0987162
- changed include path from audacious to audlegacy.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
2695
diff
changeset
|
26 #include <audlegacy/i18n.h> |
1214
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
27 #include <stdlib.h> |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
28 |
2695
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
29 OSSConfig oss_cfg; |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
30 |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
31 static void oss_about(void) |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
32 { |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
33 static GtkWidget *dialog; |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
34 |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
35 if (dialog != NULL) |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
36 return; |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
37 |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
38 dialog = audacious_info_dialog(_("About OSSv4 Driver"), |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
39 _("Audacious OSSv4 Driver\n\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
40 "Based on the OSSv3 Output plugin,\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
41 "Ported to OSSv4's VMIX by Cristi Magherusan <majeru@gentoo.ro>\n\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
42 "This program is free software; you can redistribute it and/or modify\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
43 "it under the terms of the GNU General Public License as published by\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
44 "the Free Software Foundation; either version 2 of the License, or\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
45 "(at your option) any later version.\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
46 "\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
47 "This program is distributed in the hope that it will be useful,\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
48 "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
49 "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
50 "GNU General Public License for more details.\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
51 "\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
52 "You should have received a copy of the GNU General Public License\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
53 "along with this program; if not, write to the Free Software\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
54 "Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,\n" |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
55 "USA."), _("Ok"), FALSE, NULL, NULL); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
56 g_signal_connect(G_OBJECT(dialog), "destroy", |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
57 G_CALLBACK(gtk_widget_destroyed), &dialog); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
58 } |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
59 |
3048 | 60 static OutputPluginInitStatus oss_init(void) |
2695
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
61 { |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
62 mcs_handle_t *db; |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
63 |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
64 memset(&oss_cfg, 0, sizeof(OSSConfig)); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
65 |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
66 oss_cfg.audio_device = 0; |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
67 oss_cfg.buffer_size = 3000; |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
68 oss_cfg.prebuffer = 25; |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
69 oss_cfg.use_alt_audio_device = FALSE; |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
70 oss_cfg.alt_audio_device = NULL; |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
71 |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
72 if ((db = aud_cfg_db_open())) { |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
73 aud_cfg_db_get_int(db, "OSS", "audio_device", &oss_cfg.audio_device); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
74 aud_cfg_db_get_int(db, "OSS", "buffer_size", &oss_cfg.buffer_size); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
75 aud_cfg_db_get_int(db, "OSS", "prebuffer", &oss_cfg.prebuffer); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
76 aud_cfg_db_get_bool(db, "OSS", "save_volume", &oss_cfg.save_volume); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
77 aud_cfg_db_get_bool(db, "OSS", "use_alt_audio_device", |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
78 &oss_cfg.use_alt_audio_device); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
79 aud_cfg_db_get_string(db, "OSS", "alt_audio_device", |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
80 &oss_cfg.alt_audio_device); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
81 aud_cfg_db_get_int(db, "OSS", "saved_volume", &vol); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
82 aud_cfg_db_close(db); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
83 } |
3048 | 84 |
85 //volume gets saved anyway, but is ignored unless "saved_volume" is true | |
86 if(!oss_cfg.save_volume) | |
87 vol = 0x6464; //maximum | |
88 | |
89 if (!oss_hardware_present()) | |
90 { | |
91 return OUTPUT_PLUGIN_INIT_NO_DEVICES; | |
92 } | |
93 else | |
94 { | |
95 return OUTPUT_PLUGIN_INIT_FOUND_DEVICES; | |
96 } | |
2695
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
97 } |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
98 |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
99 static void oss_cleanup(void) |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
100 { |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
101 mcs_handle_t *db; |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
102 db = aud_cfg_db_open(); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
103 aud_cfg_db_set_int(db, "OSS", "saved_volume", vol); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
104 aud_cfg_db_close(db); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
105 |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
106 if (oss_cfg.alt_audio_device) { |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
107 g_free(oss_cfg.alt_audio_device); |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
108 oss_cfg.alt_audio_device = NULL; |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
109 } |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
110 } |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
111 |
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
112 static OutputPlugin oss4_op = { |
3048 | 113 .description = "OSS4 Output Plugin", |
114 .probe_priority = 1, | |
1629
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
115 .init = oss_init, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
116 .cleanup = oss_cleanup, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
117 .about = oss_about, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
118 .configure = oss_configure, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
119 .get_volume = oss_get_volume, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
120 .set_volume = oss_set_volume, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
121 .open_audio = oss_open, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
122 .write_audio = oss_write, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
123 .close_audio = oss_close, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
124 .flush = oss_flush, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
125 .pause = oss_pause, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
126 .buffer_free = oss_free, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
127 .buffer_playing = oss_playing, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
128 .output_time = oss_get_output_time, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
129 .written_time = oss_get_written_time, |
4c937c5a03d2
OSS, OSS4: C99 initialisers
William Pitcock <nenolod@atheme.org>
parents:
1395
diff
changeset
|
130 .tell_audio = oss_tell |
1214
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
131 }; |
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
132 |
2695
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
133 static OutputPlugin *oss4_oplist[] = { &oss4_op, NULL }; |
1214
2a722c3ccd9e
damn, I forgot to 'hg add' the sources
Cristi Magherusan <majeru@atheme-project.org>
parents:
diff
changeset
|
134 |
2695
c2861c84f850
Perform same cleanups as in "old" OSS plugin.
Matti Hamalainen <ccr@tnsp.org>
parents:
2693
diff
changeset
|
135 DECLARE_PLUGIN(OSS4, NULL, NULL, NULL, oss4_oplist, NULL, NULL, NULL, NULL); |