From 977a6d0035dc1add3f490fcb31376271450ebfac Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 17 Nov 2008 09:41:06 -0500 Subject: 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. --- server/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/monitor.c') diff --git a/server/monitor.c b/server/monitor.c index 9eccb0b9..b85b7d60 100644 --- a/server/monitor.c +++ b/server/monitor.c @@ -138,7 +138,7 @@ static int monitor_dbus_init(struct mt_ctx *ctx) return ENOMEM; } sd_ctx->methods = monitor_methods; - sd_ctx->message_handler = NULL; /* Use the default message_handler */ + sd_ctx->message_handler = sbus_message_handler; /* Use the default message_handler */ ret = sbus_new_server(ctx->ev, sd_ctx, sbus_address, dbus_service_init, ctx); -- cgit