update_gatt_uuids(req, device->primaries, services);
#endif
+#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
+ /* do not delete existing primary list,
+ * just append the new primary uuids,
+ * the list will be modifed when service changed
+ * indication is received during connection */
g_slist_free_full(device->primaries, g_free);
device->primaries = NULL;
+#endif
device_register_primaries(device, services, -1);
return;
}
+#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
+ /* Register the services after setting the client is ready
+ * and exporting all the services and characteristics paths.
+ */
register_gatt_services(device);
+#endif
btd_gatt_client_ready(device->client_dbus);
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ register_gatt_services(device);
+#endif
+
/*
* Update the GattServices property. Do this asynchronously since this
* should happen after the "Characteristics" and "Descriptors"