mirror of
https://github.com/google/pebble.git
synced 2025-05-29 22:43:12 +00:00
spelling: function
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
3c336ea7f5
commit
11d05ba281
5 changed files with 11 additions and 11 deletions
|
@ -156,8 +156,8 @@ static const GAPLERole s_current_role = GAPLERoleSlave;
|
|||
// Function prototypes
|
||||
|
||||
typedef void (*IntentApply)(GAPLEConnectionIntent *intent, void *data);
|
||||
static void prv_apply_fuction_to_intents_matching_connection(const GAPLEConnection *connection,
|
||||
IntentApply fp, void *data);
|
||||
static void prv_apply_function_to_intents_matching_connection(const GAPLEConnection *connection,
|
||||
IntentApply fp, void *data);
|
||||
|
||||
static bool prv_intent_matches_connection(const GAPLEConnectionIntent *intent,
|
||||
const GAPLEConnection *connection);
|
||||
|
@ -238,7 +238,7 @@ static void prv_build_task_mask_cb(GAPLEConnectionIntent *intent, void *data) {
|
|||
PebbleTaskBitset gap_le_connect_task_mask_for_connection(const GAPLEConnection *connection) {
|
||||
const PebbleTaskBitset task_mask_none = ~0;
|
||||
PebbleTaskBitset task_mask = task_mask_none;
|
||||
prv_apply_fuction_to_intents_matching_connection(connection, prv_build_task_mask_cb, &task_mask);
|
||||
prv_apply_function_to_intents_matching_connection(connection, prv_build_task_mask_cb, &task_mask);
|
||||
return task_mask;
|
||||
}
|
||||
|
||||
|
@ -542,8 +542,8 @@ void bt_driver_handle_le_disconnection_complete_event(const BleDisconnectionComp
|
|||
// -------------------------------------------------------------------------------------------------
|
||||
//! Convenience function to apply a function to each intent matching or resolving to a device
|
||||
//! bt_lock is assumed to be taken before calling this function.
|
||||
static void prv_apply_fuction_to_intents_matching_connection(const GAPLEConnection *connection,
|
||||
IntentApply fp, void *data) {
|
||||
static void prv_apply_function_to_intents_matching_connection(const GAPLEConnection *connection,
|
||||
IntentApply fp, void *data) {
|
||||
GAPLEConnectionIntent *intent = s_intents;
|
||||
while (intent) {
|
||||
GAPLEConnectionIntent *next = (GAPLEConnectionIntent *) intent->node.next;
|
||||
|
@ -590,8 +590,8 @@ void bt_driver_handle_le_encryption_change_event(const BleEncryptionChange *even
|
|||
bt_driver_pebble_pairing_service_handle_status_change(connection);
|
||||
}
|
||||
|
||||
prv_apply_fuction_to_intents_matching_connection(connection,
|
||||
prv_send_clients_encrypted_event, NULL);
|
||||
prv_apply_function_to_intents_matching_connection(connection,
|
||||
prv_send_clients_encrypted_event, NULL);
|
||||
unlock:
|
||||
bt_unlock();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue