summaryrefslogtreecommitdiffstats
path: root/src/sbus/sssd_dbus_interface.c
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2014-12-14 19:02:49 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-01-23 21:29:44 +0100
commitb742179ac0790068380618ab72a06af18544f09c (patch)
tree6215aaf93ac5594205481da9d5a746be0be86eaf /src/sbus/sssd_dbus_interface.c
parent80d0bd38268c02fd32f62b02ae59f19229ca1a79 (diff)
downloadsssd-b742179ac0790068380618ab72a06af18544f09c.tar.gz
sssd-b742179ac0790068380618ab72a06af18544f09c.tar.xz
sssd-b742179ac0790068380618ab72a06af18544f09c.zip
sbus: support org.freedesktop.DBus.Properties
Bring back org.freedesktop.DBus.Properties with support of multiple interfaces on single object path. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/sbus/sssd_dbus_interface.c')
-rw-r--r--src/sbus/sssd_dbus_interface.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/sbus/sssd_dbus_interface.c b/src/sbus/sssd_dbus_interface.c
index b67431d66..0a652ba4d 100644
--- a/src/sbus/sssd_dbus_interface.c
+++ b/src/sbus/sssd_dbus_interface.c
@@ -306,7 +306,7 @@ sbus_opath_hash_has_path(hash_table_t *table,
* in the path hierarchy and try to lookup the parent node. This continues
* until the root is reached.
*/
-static struct sbus_interface *
+struct sbus_interface *
sbus_opath_hash_lookup_iface(hash_table_t *table,
const char *object_path,
const char *iface_name)
@@ -549,8 +549,17 @@ sbus_conn_register_iface(struct sbus_connection *conn,
}
/* register standard interfaces with this object path as well */
+ ret = sbus_conn_register_iface(conn, sbus_properties_vtable(),
+ object_path, conn);
+ if (ret != EOK) {
+ return ret;
+ }
+
ret = sbus_conn_register_iface(conn, sbus_introspect_vtable(),
object_path, conn);
+ if (ret != EOK) {
+ return ret;
+ }
return ret;
}