summaryrefslogtreecommitdiffstats
path: root/server/sbus/tests/test_client.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2008-11-17 09:41:06 -0500
committerSimo Sorce <idra@samba.org>2008-11-17 10:02:34 -0500
commit977a6d0035dc1add3f490fcb31376271450ebfac (patch)
tree02d0eee222ce472f0ed71d29d68fb7129cb18976 /server/sbus/tests/test_client.c
parent12136300b98a87169964dfe72adc442b6d91a47a (diff)
downloadsssd-977a6d0035dc1add3f490fcb31376271450ebfac.tar.gz
sssd-977a6d0035dc1add3f490fcb31376271450ebfac.tar.xz
sssd-977a6d0035dc1add3f490fcb31376271450ebfac.zip
The default message handler will now pass both the method_ctx and the
sbus_conn_ctx to all message handling functions. This will allow connection-specific data to be passed in by taking advantage of the sbus_conn_set_private_data() function on the sbus_conn_ctx struct. Presently this private data is global to all methods of the connection context.
Diffstat (limited to 'server/sbus/tests/test_client.c')
-rw-r--r--server/sbus/tests/test_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sbus/tests/test_client.c b/server/sbus/tests/test_client.c
index 06cd11338..b2dce4260 100644
--- a/server/sbus/tests/test_client.c
+++ b/server/sbus/tests/test_client.c
@@ -182,6 +182,7 @@ int main (int argc, const char *argv[])
service_methods->interface = talloc_strdup(service_methods, SERVICE_INTERFACE);
service_methods->path = talloc_strdup(service_methods, SERVICE_PATH);
service_methods->methods = monitor_service_methods;
+ service_methods->message_handler = sbus_message_handler;
sbus_conn_add_method_ctx(test_ctx->dct_ctx, service_methods);
/* Enter the main loop (and hopefully never return) */