2 #include <glib-object.h>
3 #include <dbus/dbus-glib.h>
5 int main (int argc
, char **argv
)
8 DBusGConnection
*connection
;
13 dbus_g_thread_init ();
15 connection
= dbus_g_bus_get (DBUS_BUS_SESSION
, &error
);
17 g_warning ("Error getting connection to the bus");
21 proxy
= dbus_g_proxy_new_for_name (connection
,
22 "org.gnome.MediaManager",
23 "/org/gnome/MediaManager/Manager",
24 "org.gnome.MediaManager.Manager");
26 g_warning ("Error creating proxy");
30 dbus_g_proxy_call (proxy
, "RegisterApp", &error
,
31 G_TYPE_STRING
, "org.Foo.Bar",
32 G_TYPE_STRING
, "/org/Foo/Bar",
33 G_TYPE_INVALID
, G_TYPE_INVALID
);