static void register_notify_io_cb(uint16_t att_ecode, void *user_data)
{
+#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
struct notify_client *client = user_data;
+#else
+ struct async_dbus_op *op = user_data;
+ struct notify_client *client = op->data;
+#endif
struct characteristic *chrc = client->chrc;
struct bt_gatt_client *gatt = chrc->service->client->gatt;
chrc->notify_io = NULL;
#endif
notify_client_free(client);
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ create_notify_reply(op, false, att_ecode);
+#endif
return;
}
struct bt_gatt_client *gatt = chrc->service->client->gatt;
const char *sender = dbus_message_get_sender(msg);
struct notify_client *client;
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ struct async_dbus_op *op;
+#endif
if (!gatt)
return btd_error_failed(msg, "Not connected");
chrc->notify_io->data = client;
chrc->notify_io->msg = dbus_message_ref(msg);
chrc->notify_io->destroy = notify_io_destroy;
+
+ op = async_dbus_op_new(msg, client);
#endif
client->notify_id = bt_gatt_client_register_notify(gatt,
chrc->value_handle,
register_notify_io_cb,
notify_io_cb,
+#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
client, NULL);
+#else
+ op, NULL);
+#endif
if (!client->notify_id) {
notify_client_unref(client);
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY