application: Add dbus register/unregister hooks
authorChristian Persch <chpe@gnome.org>
Sat, 5 May 2012 14:52:28 +0000 (16:52 +0200)
committerChristian Persch <chpe@gnome.org>
Tue, 29 May 2012 17:01:42 +0000 (19:01 +0200)
commit4979c1d075e08bcdc7a6569afae2052dac5eea81
tree4b491206816546731a21bd20204629a86659cac0
parentf642209ef4c7f13f5ff03ca3c315cd237f8f26bb
application: Add dbus register/unregister hooks

When the application is using its D-Bus backend, it is useful to be able
to export extra D-Bus objects at the right time, i.e. *before* the application
tries to own the bus name. This is accomplished here by adding a hook
in GApplicationClass for this; and a corresponding hook that will be called
on unregistration to undo whatever the register hook did.

Bug #675509.
gio/gapplication.c
gio/gapplication.h
gio/gapplicationimpl-dbus.c
gio/tests/Makefile.am
gio/tests/gapplication-example-dbushooks.c [new file with mode: 0644]