summaryrefslogtreecommitdiff
path: root/server/util
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@sgallagh.bos.redhat.com>2008-12-15 10:35:49 -0500
committerSimo Sorce <idra@samba.org>2008-12-15 15:41:50 -0500
commit519a8e9cba9df29a396d6509fb71a10ef1aacec0 (patch)
tree0efea08883d6a3fff9cbdd1f1689140bd5e702e0 /server/util
parent124083f5801312aeef6f97402dba181d98eb708c (diff)
downloadsssd-519a8e9cba9df29a396d6509fb71a10ef1aacec0.tar.gz
sssd-519a8e9cba9df29a396d6509fb71a10ef1aacec0.tar.bz2
sssd-519a8e9cba9df29a396d6509fb71a10ef1aacec0.zip
Adding a parameter to the sbus_service_sbus_init function to allow passing in an sbus_conn_destructor_fn to the sbus_new_connection() function. Fixing minor warning about the usage of talloc_reference.
Diffstat (limited to 'server/util')
-rw-r--r--server/util/service_helpers.c5
-rw-r--r--server/util/service_helpers.h3
2 files changed, 5 insertions, 3 deletions
diff --git a/server/util/service_helpers.c b/server/util/service_helpers.c
index 1630946f..0c5661b2 100644
--- a/server/util/service_helpers.c
+++ b/server/util/service_helpers.c
@@ -33,7 +33,8 @@
struct service_sbus_ctx *sssd_service_sbus_init(TALLOC_CTX *mem_ctx,
struct event_context *ev,
struct confdb_ctx *cdb,
- struct sbus_method *methods)
+ struct sbus_method *methods,
+ sbus_conn_destructor_fn destructor)
{
struct service_sbus_ctx *ss_ctx;
struct sbus_method_ctx *sm_ctx;
@@ -61,7 +62,7 @@ struct service_sbus_ctx *sssd_service_sbus_init(TALLOC_CTX *mem_ctx,
ret = sbus_new_connection(ss_ctx, ss_ctx->ev,
sbus_address, &ss_ctx->scon_ctx,
- NULL);
+ destructor);
if (ret != EOK) goto error;
conn = sbus_get_connection(ss_ctx->scon_ctx);
diff --git a/server/util/service_helpers.h b/server/util/service_helpers.h
index f2701d51..05777ea2 100644
--- a/server/util/service_helpers.h
+++ b/server/util/service_helpers.h
@@ -33,6 +33,7 @@ struct service_sbus_ctx {
struct service_sbus_ctx *sssd_service_sbus_init(TALLOC_CTX *mem_ctx,
struct event_context *ev,
struct confdb_ctx *cdb,
- struct sbus_method *methods);
+ struct sbus_method *methods,
+ sbus_conn_destructor_fn destructor);
#endif /*SERVICE_HELPERS_H_*/