fixed the GDbusProxy in GATT: register, unregister and service callabck 24/139924/1
authorAmit Purwar <amit.purwar@samsung.com>
Fri, 21 Jul 2017 05:04:24 +0000 (10:34 +0530)
committerAmit Purwar <amit.purwar@samsung.com>
Fri, 21 Jul 2017 05:24:50 +0000 (10:54 +0530)
Change-Id: I807f9a4a25e544a6f7630ca23b9737f017c3bb73
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
bt-api/bt-gatt-service.c

index e483da5..77bee58 100644 (file)
@@ -1469,7 +1469,7 @@ void get_service_cb(GObject *object, GAsyncResult *res, gpointer user_data)
        int n_char = 1;
 
        BT_DBG(" ");
-       result = g_dbus_proxy_call_finish(manager_gproxy, res, &error);
+       result = g_dbus_proxy_call_finish(G_DBUS_PROXY(object), res, &error);
 
        if (result == NULL) {
                /* dBUS-RPC is failed */
@@ -1519,7 +1519,7 @@ void register_application_cb(GObject *object, GAsyncResult *res, gpointer user_d
 
        register_pending_cnt = 0;
 
-       result = g_dbus_proxy_call_finish(manager_gproxy, res, &error);
+       result = g_dbus_proxy_call_finish(G_DBUS_PROXY(object), res, &error);
 
        if (result == NULL) {
                /* dBUS-RPC is failed */
@@ -1544,7 +1544,7 @@ void unregister_application_cb(GObject *object, GAsyncResult *res,
        GError *error = NULL;
        GVariant *result;
 
-       result = g_dbus_proxy_call_finish(manager_gproxy, res, &error);
+       result = g_dbus_proxy_call_finish(G_DBUS_PROXY(object), res, &error);
 
        if (result == NULL) {
                /* dBUS-RPC is failed */