comparison Plugins/Input/console/Audacious_Driver.cpp @ 98:e42694a28331 trunk

[svn] More progress -- now loads as an audacious module. :)
author nenolod
date Tue, 01 Nov 2005 21:34:11 -0800
parents 8dbd2d31c1f7
children 4b2b964a7694
comparison
equal deleted inserted replaced
97:6b7d49bd0292 98:e42694a28331
6 * http://www.slack.net/~ant/libs/ 6 * http://www.slack.net/~ant/libs/
7 */ 7 */
8 8
9 #include "Audacious_Driver.h" 9 #include "Audacious_Driver.h"
10 10
11 extern "C" {
12
11 #include <glib/gi18n.h> 13 #include <glib/gi18n.h>
12 #include "libaudacious/configfile.h" 14 #include "libaudacious/configfile.h"
13 #include "libaudacious/util.h" 15 #include "libaudacious/util.h"
14 #include "libaudacious/titlestring.h" 16 #include "libaudacious/titlestring.h"
15 #include "audacious/output.h" 17 #include "audacious/output.h"
16 #include <gtk/gtk.h> 18 #include <gtk/gtk.h>
19
20 };
17 21
18 #include <cstring> 22 #include <cstring>
19 23
20 static Spc_Emu *spc = NULL; 24 static Spc_Emu *spc = NULL;
21 static GThread *decode_thread; 25 static GThread *decode_thread;
117 { 121 {
118 g_thread_join(decode_thread); 122 g_thread_join(decode_thread);
119 console_ip.output->close_audio(); 123 console_ip.output->close_audio();
120 } 124 }
121 125
122 InputPlugin *get_iplugin_info(void) 126 extern "C" InputPlugin *get_iplugin_info(void)
123 { 127 {
124 console_ip.description = g_strdup_printf(_("Console music plugin")); 128 console_ip.description = g_strdup_printf(_("Console music plugin"));
125 return &console_ip; 129 return &console_ip;
126 } 130 }
127 131