summaryrefslogtreecommitdiffstats
path: root/src/sbus/sssd_dbus_interface.c
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2014-12-13 14:25:14 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-01-23 21:29:41 +0100
commit80d0bd38268c02fd32f62b02ae59f19229ca1a79 (patch)
treedaf1d544a9593ecf63999df0899278c80332d7ef /src/sbus/sssd_dbus_interface.c
parent21e05273eed8cc914871938061554589883e67ce (diff)
downloadsssd-80d0bd38268c02fd32f62b02ae59f19229ca1a79.tar.gz
sssd-80d0bd38268c02fd32f62b02ae59f19229ca1a79.tar.xz
sssd-80d0bd38268c02fd32f62b02ae59f19229ca1a79.zip
sbus: support org.freedesktop.DBus.Introspectable
This commit brings back support of Introspectable interface and enables support of multiple interfaces there. It also refactors the old code so the generator and introspect xml format especially is more readable. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/sbus/sssd_dbus_interface.c')
-rw-r--r--src/sbus/sssd_dbus_interface.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/sbus/sssd_dbus_interface.c b/src/sbus/sssd_dbus_interface.c
index 41d8c5949..b67431d66 100644
--- a/src/sbus/sssd_dbus_interface.c
+++ b/src/sbus/sssd_dbus_interface.c
@@ -540,10 +540,18 @@ sbus_conn_register_iface(struct sbus_connection *conn,
return EOK;
}
- ret = sbus_conn_register_path(conn, object_path);
-
/* if ret != EOK we will still leave iface in the table, since
* we probably don't have enough memory to remove it correctly anyway */
+
+ ret = sbus_conn_register_path(conn, object_path);
+ if (ret != EOK) {
+ return ret;
+ }
+
+ /* register standard interfaces with this object path as well */
+ ret = sbus_conn_register_iface(conn, sbus_introspect_vtable(),
+ object_path, conn);
+
return ret;
}