From: jino.cho Date: Wed, 26 Apr 2017 02:34:17 +0000 (+0900) Subject: Pass pb_data to callbacks of gpio methods X-Git-Tag: accepted/tizen/unified/20170426.200825~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e04502b04337354f2173aa306ce4874056b8d34;p=platform%2Fcore%2Fsystem%2Fperipheral-bus.git Pass pb_data to callbacks of gpio methods Previous commit missed adding pb_data to argument. This commit fix crash issue due to the missing. Change-Id: I75d3cffe6a09c72b6976d5581e22153866479f1b Signed-off-by: jino.cho --- diff --git a/src/daemon/peripheral_bus.c b/src/daemon/peripheral_bus.c index 78f677d..9d5686f 100644 --- a/src/daemon/peripheral_bus.c +++ b/src/daemon/peripheral_bus.c @@ -413,35 +413,35 @@ static gboolean __gpio_init(peripheral_bus_s *pb_data) g_signal_connect(pb_data->gpio_skeleton, "handle-open", G_CALLBACK(handle_gpio_open), - NULL); + pb_data); g_signal_connect(pb_data->gpio_skeleton, "handle-close", G_CALLBACK(handle_gpio_close), - NULL); + pb_data); g_signal_connect(pb_data->gpio_skeleton, "handle-get-direction", G_CALLBACK(handle_gpio_get_direction), - NULL); + pb_data); g_signal_connect(pb_data->gpio_skeleton, "handle-set-direction", G_CALLBACK(handle_gpio_set_direction), - NULL); + pb_data); g_signal_connect(pb_data->gpio_skeleton, "handle-read", G_CALLBACK(handle_gpio_read), - NULL); + pb_data); g_signal_connect(pb_data->gpio_skeleton, "handle-write", G_CALLBACK(handle_gpio_write), - NULL); + pb_data); g_signal_connect(pb_data->gpio_skeleton, "handle-get-edge-mode", G_CALLBACK(handle_gpio_get_edge_mode), - NULL); + pb_data); g_signal_connect(pb_data->gpio_skeleton, "handle-set-edge-mode", G_CALLBACK(handle_gpio_set_edge_mode), - NULL); + pb_data); manager = g_dbus_object_manager_server_new(PERIPHERAL_DBUS_GPIO_PATH);