mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-17 20:42:47 +00:00
gap: move typedefs to the beginning
This commit is contained in:
parent
34c4fa369a
commit
93ce4396c8
27
src/gap.h
27
src/gap.h
@ -325,6 +325,20 @@ typedef struct {
|
||||
bool can_send_now_requested;
|
||||
} le_audio_cig_t;
|
||||
|
||||
typedef enum {
|
||||
GAP_PRIVACY_CLIENT_STATE_IDLE,
|
||||
GAP_PRIVACY_CLIENT_STATE_PENDING,
|
||||
GAP_PRIVACY_CLIENT_STATE_READY
|
||||
} gap_privacy_client_state_t;
|
||||
|
||||
struct gap_privacy_client {
|
||||
btstack_linked_item_t * next;
|
||||
void (*callback)(struct gap_privacy_client * client, bd_addr_t random_addr);
|
||||
gap_privacy_client_state_t state;
|
||||
};
|
||||
|
||||
typedef struct gap_privacy_client gap_privacy_client_t;
|
||||
|
||||
/* API_START */
|
||||
|
||||
// Classic + LE
|
||||
@ -1466,19 +1480,6 @@ void gap_set_peer_privacy_mode(le_privacy_mode_t privacy_mode );
|
||||
*/
|
||||
uint8_t gap_load_resolving_list_from_le_device_db(void);
|
||||
|
||||
typedef enum {
|
||||
GAP_PRIVACY_CLIENT_STATE_IDLE,
|
||||
GAP_PRIVACY_CLIENT_STATE_PENDING,
|
||||
GAP_PRIVACY_CLIENT_STATE_READY
|
||||
} gap_privacy_client_state_t;
|
||||
|
||||
struct gap_privacy_client {
|
||||
btstack_linked_item_t * next;
|
||||
void (*callback)(struct gap_privacy_client * client, bd_addr_t random_addr);
|
||||
gap_privacy_client_state_t state;
|
||||
};
|
||||
typedef struct gap_privacy_client gap_privacy_client_t;
|
||||
|
||||
/**
|
||||
* @brief Register callback that gets executed during random address update
|
||||
* @note gap_privacy_client_ready needs to be called after callback is received
|
||||
|
Loading…
x
Reference in New Issue
Block a user