From 3288d5ac1881084fbc8070af954e073423be0878 Mon Sep 17 00:00:00 2001 From: "injun.yang" Date: Tue, 17 Apr 2018 17:48:47 +0900 Subject: [PATCH 1/1] Fix : Invalid GVariant format Change-Id: I679669dcaef3b3c4695a99f3e813015324c3eb62 --- bt-service/bt-service-hid.c | 2 +- bt-service/bt-service-network.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bt-service/bt-service-hid.c b/bt-service/bt-service-hid.c index c071738..fb0dc54 100644 --- a/bt-service/bt-service-hid.c +++ b/bt-service/bt-service-hid.c @@ -139,7 +139,7 @@ static void __bt_hid_disconnect_cb(GDBusProxy *proxy, GAsyncResult *res, &device_addr, sizeof(bluetooth_device_address_t), TRUE, NULL, NULL); g_dbus_method_invocation_return_value(req_info->context, - g_variant_new("iv", result, out_param1)); + g_variant_new("(iv)", result, out_param1)); _bt_delete_request_list(req_info->req_id); BT_DBG("HID Disconnected.."); diff --git a/bt-service/bt-service-network.c b/bt-service/bt-service-network.c index bd065b2..5752a53 100644 --- a/bt-service/bt-service-network.c +++ b/bt-service/bt-service-network.c @@ -179,7 +179,7 @@ static void __bt_network_connect_cb(GDBusProxy *proxy, GAsyncResult *res, &device_addr, sizeof(bluetooth_device_address_t), TRUE, NULL, NULL); g_dbus_method_invocation_return_value(req_info->context, - g_variant_new("iv", result, out_param1)); + g_variant_new("(iv)", result, out_param1)); _bt_delete_request_list(req_info->req_id); @@ -240,7 +240,7 @@ static void __bt_network_disconnect_cb(GDBusProxy *proxy, GAsyncResult *res, &device_addr, sizeof(bluetooth_device_address_t), TRUE, NULL, NULL); g_dbus_method_invocation_return_value(req_info->context, - g_variant_new("iv", result, out_param1)); + g_variant_new("(iv)", result, out_param1)); _bt_delete_request_list(req_info->req_id); -- 2.7.4