#ifdef TIZEN_GATT_CLIENT
static void __bt_gatt_free_service(bt_gatt_h gatt_handle);
+/* LCOV_EXCL_START */
void __bt_string_to_uuid_hex(const char *str, unsigned char *uuid)
{
uint32_t uuid0, uuid4;
}
#endif
-/* LCOV_EXCL_START */
static int __bt_check_gatt_server_init_status(void)
{
if (is_gatt_server_initialized != true) {
return ret;
}
#else
-/* LCOV_EXCL_STOP */
int bt_gatt_connect(const char *address, bool auto_connect)
{
int ret;
}
/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
int bt_gatt_destroy(bt_gatt_h gatt_handle)
{
bt_gatt_common_s *handle = (bt_gatt_common_s *)gatt_handle;
return BT_ERROR_NONE;
}
-/* LCOV_EXCL_STOP */
-
int bt_gatt_get_value(bt_gatt_h gatt_handle, char **value, int *value_length)
{
bt_gatt_common_s *handle = (bt_gatt_common_s *)gatt_handle;
return BT_ERROR_NONE; /* LCOV_EXCL_STOP */
}
+
/* LCOV_EXCL_START */
int bt_gatt_characteristic_get_permissions(bt_gatt_h gatt_handle, int *permissions)
{
return BT_ERROR_NONE;
}
/* LCOV_EXCL_STOP */
+
int bt_gatt_get_uuid(bt_gatt_h gatt_handle, char **uuid)
{
bt_gatt_common_s *handle = (bt_gatt_common_s *)gatt_handle;
return BT_ERROR_NONE;
}
-/* LCOV_EXCL_START */
+
int bt_gatt_server_initialize(void)
{
BT_CHECK_GATT_SUPPORT();
return ret; /* LCOV_EXCL_STOP */
}
#else
-/* LCOV_EXCL_STOP */
int bt_gatt_client_create(const char *remote_address, bt_gatt_client_h *client)
{
int ret = BT_ERROR_NONE;
return false; /* LCOV_EXCL_STOP */
}
-
+/* LCOV_EXCL_START */
void _handle_gatt_client_read_completed_event(int result, bt_gatt_resp_data_t *resp)
{
bt_gatt_common_s *handle;
if (cb)
cb(result, handle, user_data);
- return; /* LCOV_EXCL_STOP */
+ return;
}
+/* LCOV_EXCL_STOP */
#ifdef TIZEN_GATT_CLIENT
int bt_gatt_client_read_value(bt_gatt_h gatt_handle,
BT_ERR("Invalid handle type for write ");
}
- return ret;
+ return ret; /* LCOV_EXCL_STOP */
}
#else
int bt_gatt_client_write_value(bt_gatt_h gatt_handle,
ret = BT_ERROR_INVALID_PARAMETER;
}
- return ret;
+ return ret; /* LCOV_EXCL_STOP */
}
#endif
return;
}
+/* LCOV_EXCL_START */
static bt_gatt_characteristic_s* __gatt_get_characteristic_handle(
unsigned char *svc_uuid,
int svc_inst,
}
}
return NULL;
-} /* LCOV_EXCL_STOP */
+}
static bt_gatt_descriptor_s* __gatt_get_descriptor_handle(
unsigned char *svc_uuid,
}
}
return NULL;
-} /* LCOV_EXCL_STOP */
+}
static void __gatt_value_changed_cb(unsigned char *uuid, char *remote_address,
char *value, int value_length, void *user_data)
}
}
}
-} /* LCOV_EXCL_STOP */
+}
+/* LCOV_EXCL_STOP */
#else
static void __value_changed_cb(char *char_path,
char *value, int value_length, void *user_data)
}
}
}
-} /* LCOV_EXCL_STOP */
+}
#endif
int bt_gatt_client_set_characteristic_value_changed_cb(bt_gatt_h characteristic,
}
#ifdef TIZEN_GATT_CLIENT
+/* LCOV_EXCL_START */
void _bt_handle_gatt_client_char_read_completed_event(int result,
void *resp)
{
return;
}
+/* LCOV_EXCL_STOP */
#endif
-
int bt_gatt_client_request_att_mtu_change(bt_gatt_client_h client, unsigned int mtu)
{
int ret;