peripheral/log.h peripheral/log.c \
peripheral/gap.h peripheral/gap.c \
peripheral/gatt.h peripheral/gatt.c
-peripheral_btsensor_LDADD = src/libshared-mainloop.la \
+peripheral_btsensor_LDADD = src/libshared-mainloop.la @LIBXML_LIBS@ \
lib/libbluetooth-internal.la
tools_3dsp_SOURCES = tools/3dsp.c monitor/bt.h
tools/test-runner tools/check-selftest
tools_bdaddr_SOURCES = tools/bdaddr.c src/oui.h src/oui.c
-tools_bdaddr_LDADD = lib/libbluetooth-internal.la @UDEV_LIBS@
+tools_bdaddr_LDADD = lib/libbluetooth-internal.la @UDEV_LIBS@ @LIBXML_LIBS@
tools_avinfo_LDADD = lib/libbluetooth-internal.la
tools_ibeacon_LDADD = src/libshared-mainloop.la
tools_btgatt_client_SOURCES = tools/btgatt-client.c src/uuid-helper.c
-tools_btgatt_client_LDADD = src/libshared-mainloop.la \
+tools_btgatt_client_LDADD = src/libshared-mainloop.la @LIBXML_LIBS@ \
lib/libbluetooth-internal.la
tools_btgatt_server_SOURCES = tools/btgatt-server.c src/uuid-helper.c
#include "src/service.h"
#include "src/log.h"
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+#include "../../profile.h"
+#endif
+
#define GAP_UUID16 0x1800
/* Generic Attribute/Access Service */
static void handle_device_name(struct gas *gas, uint16_t value_handle)
{
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ if (TIZEN_FEATURE_BLUEZ_DA) {
+ DBG("Do not try to read device name in DA");
+ return;
+ }
+#endif
+
if (!bt_gatt_client_read_long_value(gas->client, value_handle, 0,
read_device_name_cb, gas, NULL))
DBG("Failed to send request to read device name");
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
if (!strcmp(uuid_str, "00002a00-0000-1000-8000-00805f9b34fb")) {
- if (!bt_gatt_client_read_value(client, chrc_data->value_handle,
- read_name_cb, client, NULL)) {
+ if (TIZEN_FEATURE_BLUEZ_DA) {
util_debug(client->debug_callback, client->debug_data,
- "Failed to read value");
+ "device name char found but do not read in DA");
+ } else {
+ if (!bt_gatt_client_read_value(client, chrc_data->value_handle,
+ read_name_cb, client, NULL)) {
+ util_debug(client->debug_callback, client->debug_data,
+ "Failed to read value");
+ }
}
}
#endif