mirror of
https://github.com/google/pebble.git
synced 2025-11-30 19:22:22 -05:00
Import of the watch repository from Pebble
This commit is contained in:
50
src/fw/comm/prf_stubs/ams.c
Normal file
50
src/fw/comm/prf_stubs/ams.c
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include "comm/ble/kernel_le_client/ams/ams.h"
|
||||
|
||||
void ams_create(void) {
|
||||
}
|
||||
|
||||
void ams_handle_service_discovered(BLECharacteristic *characteristics) {
|
||||
}
|
||||
|
||||
bool ams_can_handle_characteristic(BLECharacteristic characteristic) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void ams_handle_subscribe(BLECharacteristic subscribed_characteristic,
|
||||
BLESubscription subscription_type, BLEGATTError error) {
|
||||
}
|
||||
|
||||
void ams_handle_write_response(BLECharacteristic characteristic, BLEGATTError error) {
|
||||
}
|
||||
|
||||
void ams_handle_read_or_notification(BLECharacteristic characteristic, const uint8_t *value,
|
||||
size_t value_length, BLEGATTError error) {
|
||||
}
|
||||
|
||||
void ams_invalidate_all_references(void) {
|
||||
}
|
||||
|
||||
void ams_handle_service_removed(BLECharacteristic *characteristics, uint8_t num_characteristics) {
|
||||
}
|
||||
|
||||
void ams_destroy(void) {
|
||||
}
|
||||
|
||||
void ams_send_command(AMSRemoteCommandID command_id) {
|
||||
}
|
||||
71
src/fw/comm/prf_stubs/ancs.c
Normal file
71
src/fw/comm/prf_stubs/ancs.c
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include "comm/ble/kernel_le_client/ancs/ancs.h"
|
||||
|
||||
|
||||
// -------------------------------------------------------------------------------------------------
|
||||
// Stub for PRF
|
||||
|
||||
void ancs_handle_read_or_notification(BLECharacteristic characteristic, const uint8_t *value,
|
||||
size_t value_length, BLEGATTError error) {
|
||||
return;
|
||||
}
|
||||
|
||||
void ancs_handle_write_response(BLECharacteristic characteristic, BLEGATTError error) {
|
||||
return;
|
||||
}
|
||||
|
||||
void ancs_perform_action(uint32_t notification_uid, uint8_t action_id) {
|
||||
return;
|
||||
}
|
||||
|
||||
void ancs_handle_service_discovered(BLECharacteristic *characteristics) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool ancs_can_handle_characteristic(BLECharacteristic characteristic) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void ancs_handle_subscribe(BLECharacteristic subscribed_characteristic,
|
||||
BLESubscription subscription_type, BLEGATTError error) {
|
||||
return;
|
||||
}
|
||||
|
||||
void ancs_invalidate_all_references(void) {
|
||||
}
|
||||
|
||||
void ancs_handle_service_removed(BLECharacteristic *characteristics, uint8_t num_characteristics) {
|
||||
}
|
||||
|
||||
void ancs_create(void) {
|
||||
return;
|
||||
}
|
||||
|
||||
void ancs_destroy(void) {
|
||||
return;
|
||||
}
|
||||
|
||||
void ancs_handle_ios9_or_newer_detected(void) {
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------------------------------
|
||||
// Analytics
|
||||
|
||||
void analytics_external_collect_ancs_info(void) {
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user