comparison src/audacious/pluginenum.c @ 2711:c35913222440 trunk

[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
author magma
date Wed, 09 May 2007 14:36:37 -0700
parents 47ea8eedd428
children cf080b11c3fa
comparison
equal deleted inserted replaced
2710:982a825992e1 2711:c35913222440
34 #include <glib.h> 34 #include <glib.h>
35 #include <gmodule.h> 35 #include <gmodule.h>
36 #include <glib/gprintf.h> 36 #include <glib/gprintf.h>
37 #include <string.h> 37 #include <string.h>
38 38
39
40 #ifdef USE_DBUS
41 #include "dbus-service.h"
42 #endif
43
39 #include "main.h" 44 #include "main.h"
40 #include "ui_main.h" 45 #include "ui_main.h"
41 #include "playback.h" 46 #include "playback.h"
42 #include "playlist.h" 47 #include "playlist.h"
43 #include "strings.h" 48 #include "strings.h"
171 static void 176 static void
172 general_plugin_init(Plugin * plugin) 177 general_plugin_init(Plugin * plugin)
173 { 178 {
174 GeneralPlugin *p = GENERAL_PLUGIN(plugin); 179 GeneralPlugin *p = GENERAL_PLUGIN(plugin);
175 p->xmms_session = -1; 180 p->xmms_session = -1;
181 #ifdef USE_DBUS
182 p->dbus_proxy = audacious_get_dbus_proxy();
183 #endif
176 gp_data.general_list = g_list_append(gp_data.general_list, p); 184 gp_data.general_list = g_list_append(gp_data.general_list, p);
177 } 185 }
178 186
179 static void 187 static void
180 vis_plugin_init(Plugin * plugin) 188 vis_plugin_init(Plugin * plugin)
181 { 189 {
182 VisPlugin *p = VIS_PLUGIN(plugin); 190 VisPlugin *p = VIS_PLUGIN(plugin);
183 p->xmms_session = -1; 191 p->xmms_session = -1;
192 #ifdef USE_DBUS
193 p->dbus_proxy = audacious_get_dbus_proxy();
194 #endif
184 p->disable_plugin = vis_disable_plugin; 195 p->disable_plugin = vis_disable_plugin;
185 vp_data.vis_list = g_list_append(vp_data.vis_list, p); 196 vp_data.vis_list = g_list_append(vp_data.vis_list, p);
186 } 197 }
187 198
188 static void 199 static void