mirror of
https://github.com/google/pebble.git
synced 2025-03-25 12:59:07 +00:00
43 lines
1.4 KiB
C
43 lines
1.4 KiB
C
/*
|
|
* Copyright 2024 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <bluetooth/gatt.h>
|
|
#include "fake_GATTAPI.h"
|
|
|
|
// TODO: Rethink how we want to stub out these new driver wrapper calls.
|
|
|
|
BTErrno bt_driver_gatt_start_discovery_range(const GAPLEConnection *connection, const ATTHandleRange *data) {
|
|
GATT_Attribute_Handle_Group_t hdl = {
|
|
.Starting_Handle = data->start,
|
|
.Ending_Handle = data->end,
|
|
};
|
|
|
|
int rv = GATT_Start_Service_Discovery_Handle_Range(bt_stack_id(), connection->gatt_connection_id,
|
|
&hdl, 0, NULL, NULL, 0);
|
|
return 0;
|
|
}
|
|
|
|
BTErrno bt_driver_gatt_stop_discovery(GAPLEConnection *connection) {
|
|
GATT_Stop_Service_Discovery(bt_stack_id(), connection->gatt_connection_id);
|
|
return 0;
|
|
}
|
|
|
|
void bt_driver_gatt_handle_finalize_discovery(GAPLEConnection *connection) {
|
|
}
|
|
|
|
void bt_driver_gatt_handle_discovery_abandoned(void) {}
|