Mercurial > audlegacy
diff 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 |
line wrap: on
line diff
--- a/src/audacious/pluginenum.c Wed May 09 14:35:33 2007 -0700 +++ b/src/audacious/pluginenum.c Wed May 09 14:36:37 2007 -0700 @@ -36,6 +36,11 @@ #include <glib/gprintf.h> #include <string.h> + +#ifdef USE_DBUS +#include "dbus-service.h" +#endif + #include "main.h" #include "ui_main.h" #include "playback.h" @@ -173,6 +178,9 @@ { GeneralPlugin *p = GENERAL_PLUGIN(plugin); p->xmms_session = -1; +#ifdef USE_DBUS + p->dbus_proxy = audacious_get_dbus_proxy(); +#endif gp_data.general_list = g_list_append(gp_data.general_list, p); } @@ -181,6 +189,9 @@ { VisPlugin *p = VIS_PLUGIN(plugin); p->xmms_session = -1; +#ifdef USE_DBUS + p->dbus_proxy = audacious_get_dbus_proxy(); +#endif p->disable_plugin = vis_disable_plugin; vp_data.vis_list = g_list_append(vp_data.vis_list, p); }
