diff src/audacious/main.c @ 2694:c2b82432c1b6 trunk

[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
author magma
date Sat, 05 May 2007 15:37:54 -0700
parents c3cd6e47faf6
children 4c4c8b294287
line wrap: on
line diff
--- a/src/audacious/main.c	Wed May 02 10:34:59 2007 -0700
+++ b/src/audacious/main.c	Sat May 05 15:37:54 2007 -0700
@@ -49,6 +49,10 @@
 #include "libaudacious/beepctrl.h"
 #include "vfs.h"
 
+#ifdef USE_DBUS
+#  include "dbus.h"
+#endif
+
 #include "controlsocket.h"
 #include "dnd.h"
 #include "effect.h"
@@ -1184,6 +1188,10 @@
     if (options.headless != 1)
         GDK_THREADS_LEAVE();
 
+#ifdef USE_DBUS
+		RemoteObject *object = init_dbus();
+#endif
+
     ctrlsocket_start();
 
     handle_cmd_line_options(&options, FALSE);