svc_handle.instance_id = service_s->instance_id;
BT_INFO("Service UUID [%s]", service_s->uuid);
- BT_INFO("Charc Instance ID [%d]", service_s->instance_id);
+ BT_INFO("Service Instance ID [%d]", service_s->instance_id);
BT_INFO("Charc UUID [%s]", chr->uuid);
BT_INFO("Charc Instance ID [%d]", chr->instance_id);
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(gatt_handle);
+ BT_VALIDATE_GATT_HANDLE(gatt_handle);
+
if (handle->type == BT_GATT_TYPE_CHARACTERISTIC)
__bt_gatt_destroy_characteristic(gatt_handle);
else {
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(gatt_handle);
+ BT_VALIDATE_GATT_HANDLE(gatt_handle);
+
if (handle->type == BT_GATT_TYPE_DESCRIPTOR)
__bt_gatt_destroy_descriptor(gatt_handle);
else {
BT_CHECK_INPUT_PARAMETER(gatt_handle);
BT_CHECK_INPUT_PARAMETER(value); /* LCOV_EXCL_START */
+ BT_VALIDATE_GATT_HANDLE(gatt_handle);
+
if (handle->type == BT_GATT_TYPE_CHARACTERISTIC) {
val = chr->value;
val_len = chr->value_length;
BT_CHECK_INPUT_PARAMETER(gatt_handle);
BT_CHECK_INPUT_PARAMETER(value); /* LCOV_EXCL_START */
+ BT_VALIDATE_GATT_HANDLE(gatt_handle);
+
if (handle->type == BT_GATT_TYPE_CHARACTERISTIC) {
val = chr->value;
val_len = chr->value_length;
BT_CHECK_INPUT_PARAMETER(gatt_handle);
+ BT_VALIDATE_GATT_HANDLE(gatt_handle);
+
if (handle->type == BT_GATT_TYPE_CHARACTERISTIC) { /* LCOV_EXCL_START */
val = &chr->value;
val_len = &chr->value_length;
BT_CHECK_INPUT_PARAMETER(gatt_handle);
+ BT_VALIDATE_GATT_HANDLE(gatt_handle);
+
if (handle->type == BT_GATT_TYPE_CHARACTERISTIC) { /* LCOV_EXCL_START */
val = &chr->value;
val_len = &chr->value_length;
BT_CHECK_INPUT_PARAMETER(gatt_handle);
BT_CHECK_INPUT_PARAMETER(uuid); /* LCOV_EXCL_LINE */
+ BT_VALIDATE_GATT_HANDLE(gatt_handle);
+
*uuid = g_strdup(handle->uuid); /* LCOV_EXCL_LINE */
return BT_ERROR_NONE; /* LCOV_EXCL_LINE */
BT_CHECK_INPUT_PARAMETER(gatt_handle);
BT_CHECK_INPUT_PARAMETER(gatt_type); /* LCOV_EXCL_LINE */
+ BT_VALIDATE_GATT_HANDLE(gatt_handle);
+
*gatt_type = handle->type; /* LCOV_EXCL_LINE */
return BT_ERROR_NONE; /* LCOV_EXCL_LINE */
BT_CHECK_INPUT_PARAMETER(gatt_handle);
BT_CHECK_INPUT_PARAMETER(callback); /* LCOV_EXCL_START */
+ BT_VALIDATE_GATT_HANDLE(gatt_handle);
+
if (__bt_gatt_client_is_in_progress()) {
BT_ERR("Operation is in progress");
return BT_ERROR_NOW_IN_PROGRESS;
BT_CHECK_INPUT_PARAMETER(gatt_handle);
BT_CHECK_INPUT_PARAMETER(callback); /* LCOV_EXCL_START */
+ BT_VALIDATE_GATT_HANDLE(gatt_handle);
+
if (__bt_gatt_client_is_in_progress()) {
BT_ERR("Operation is in progress");
return BT_ERROR_NOW_IN_PROGRESS;