summaryrefslogtreecommitdiffstats
path: root/src/sbus/sssd_dbus.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2014-12-11 22:23:32 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-01-23 21:29:31 +0100
commit46ee931314e6a5517f5c6b6b14f759364be119cc (patch)
treeddd462856868f8e5aad32d940302640221dd8e46 /src/sbus/sssd_dbus.h
parent894f09f146f0c9cda9e0f7dfe1916519d73dde72 (diff)
downloadsssd-46ee931314e6a5517f5c6b6b14f759364be119cc.tar.gz
sssd-46ee931314e6a5517f5c6b6b14f759364be119cc.tar.xz
sssd-46ee931314e6a5517f5c6b6b14f759364be119cc.zip
sbus: support multiple interfaces on single path
This patch removes the old message handler which is replaced with a new one that supports multiple interfaces registered on single object path. A hash table is used to store registered object paths and their interfaces. When an entry or the table itself is destroyed, registered object path is unregistered through delete callback. It temporarily removes support of Introspect and Properties standard D-Bus interfaces and disables unit tests of those interfaces. The support is brought back by following patches. Resolves: https://fedorahosted.org/sssd/ticket/2339 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/sbus/sssd_dbus.h')
-rw-r--r--src/sbus/sssd_dbus.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/sbus/sssd_dbus.h b/src/sbus/sssd_dbus.h
index 7552fbcf1..c50b4e9b6 100644
--- a/src/sbus/sssd_dbus.h
+++ b/src/sbus/sssd_dbus.h
@@ -170,6 +170,9 @@ int sbus_conn_register_iface(struct sbus_connection *conn,
const char *object_path,
void *pvt);
+errno_t
+sbus_conn_reregister_paths(struct sbus_connection *conn);
+
bool sbus_conn_disconnecting(struct sbus_connection *conn);
/* max_retries < 0: retry forever
@@ -181,12 +184,6 @@ void sbus_reconnect_init(struct sbus_connection *conn,
sbus_conn_reconn_callback_fn callback,
void *pvt);
-/* Default message handler
- * Should be usable for most cases */
-DBusHandlerResult sbus_message_handler(DBusConnection *conn,
- DBusMessage *message,
- void *user_data);
-
/*
* Send a message across the SBUS
* If requested, the DBusPendingCall object will