};
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
-static void conf_cb(void *user_data);
+static void conf_cb_tizen(void *user_data);
#endif
static void ccc_cb_free(void *data)
put_le16(end_handle, value + 2);
bt_gatt_server_send_indication(server, svc_chngd_handle,
- value, sizeof(value), conf_cb,
+ value, sizeof(value), conf_cb_tizen,
NULL, NULL);
}
DBG("GATT server received confirmation");
if (proxy != NULL)
- {
g_dbus_proxy_method_call(proxy, "Confirm", NULL, NULL, NULL, NULL);
- }
+
+}
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+static void conf_cb_tizen(void *user_data)
+{
+
+ DBG("GATT server received indication confirmation");
struct notify_indicate_cb *confirm = user_data;
if (confirm) {
g_dbus_proxy_unref(confirm->proxy);
confirm->proxy = NULL;
}
-#endif
+
}
+#endif
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
static void send_notification_indication_to_device(void *data, void *user_data)
notify_indicate->len);
/* In case of Notification, send response to application
* as remote device do not respond for notification */
- conf_cb(confirm);
+ conf_cb_tizen(confirm);
indicate_confirm_free((void *)confirm);
return;
}
bt_gatt_server_send_indication(btd_device_get_gatt_server(device),
notify_indicate->handle,
notify_indicate->value,
- notify_indicate->len, conf_cb,
+ notify_indicate->len, conf_cb_tizen,
confirm, indicate_confirm_free);
}