summaryrefslogtreecommitdiffstats
path: root/server/sbus/sssd_dbus.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-11-19 14:17:27 -0500
committerSimo Sorce <idra@samba.org>2008-11-19 14:17:27 -0500
commitb819da364c40fb79f4cab87d02c3dd4ec3fe8b50 (patch)
tree8134b81331bf5088727288f0c27bea8611ab5ae4 /server/sbus/sssd_dbus.h
parent18de263889a8cb71ff9d3087e5cef5777d0221b5 (diff)
downloadsssd-b819da364c40fb79f4cab87d02c3dd4ec3fe8b50.tar.gz
sssd-b819da364c40fb79f4cab87d02c3dd4ec3fe8b50.tar.xz
sssd-b819da364c40fb79f4cab87d02c3dd4ec3fe8b50.zip
Add method to get a connection's private data
Fix memory hierarchy, set the destructor on the server context so that it is called before any memory attached to it is freed. Before this change a talloc_free() on the event context would end in a double free and and an abort() inside talloc.
Diffstat (limited to 'server/sbus/sssd_dbus.h')
-rw-r--r--server/sbus/sssd_dbus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sbus/sssd_dbus.h b/server/sbus/sssd_dbus.h
index 321bd603e..94447a6e3 100644
--- a/server/sbus/sssd_dbus.h
+++ b/server/sbus/sssd_dbus.h
@@ -82,6 +82,7 @@ int sbus_default_connection_destructor(void *ctx);
DBusConnection *sbus_get_connection(struct sbus_conn_ctx *conn_ctx);
void sbus_disconnect(struct sbus_conn_ctx *conn_ctx);
void sbus_conn_set_private_data(struct sbus_conn_ctx *conn_ctx, void *pvt_data);
+void *sbus_conn_get_private_data(struct sbus_conn_ctx *conn_ctx);
int sbus_conn_add_method_ctx(struct sbus_conn_ctx *conn_ctx,
struct sbus_method_ctx *method_ctx);