Mercurial > audlegacy
diff src/audacious/dbus.c @ 2785:182aa34ae6c4 trunk
[svn] - implement some audacious-remote functions.
- implement some audacious-drct functions.
- make some command line options work. (this may incur very slow startup.)
- suppress warnings.
author | yaz |
---|---|
date | Tue, 22 May 2007 15:17:15 -0700 |
parents | 4585019eb82e |
children | 77a012c3b521 |
line wrap: on
line diff
--- a/src/audacious/dbus.c Sat May 19 16:59:48 2007 -0700 +++ b/src/audacious/dbus.c Tue May 22 15:17:15 2007 -0700 @@ -604,3 +604,14 @@ mainwin_shuffle_pushed(!cfg.shuffle); return TRUE; } + +DBusGProxy *audacious_get_dbus_proxy(void) +{ + DBusGConnection *connection = NULL; + GError *error = NULL; + connection = dbus_g_bus_get(DBUS_BUS_SESSION, &error); + g_clear_error(&error); + return dbus_g_proxy_new_for_name(connection, AUDACIOUS_DBUS_SERVICE, + AUDACIOUS_DBUS_PATH, + AUDACIOUS_DBUS_INTERFACE); +}