20#ifndef H_BLE_HS_PERIODIC_SYNC_
21#define H_BLE_HS_PERIODIC_SYNC_
24#include "nimble/porting/nimble/include/os/queue.h"
29struct ble_hs_periodic_sync {
30 SLIST_ENTRY(ble_hs_periodic_sync) next;
32 ble_addr_t advertiser_addr;
38 struct ble_npl_event lost_ev;
41struct ble_hs_periodic_sync *ble_hs_periodic_sync_alloc(
void);
42void ble_hs_periodic_sync_free(
struct ble_hs_periodic_sync *psync);
43void ble_hs_periodic_sync_insert(
struct ble_hs_periodic_sync *psync);
44void ble_hs_periodic_sync_remove(
struct ble_hs_periodic_sync *psync);
45struct ble_hs_periodic_sync *ble_hs_periodic_sync_find_by_handle(uint16_t sync_handle);
46struct ble_hs_periodic_sync *ble_hs_periodic_sync_find(
const ble_addr_t *addr,
48struct ble_hs_periodic_sync *ble_hs_periodic_sync_first(
void);
49int ble_hs_periodic_sync_init(
void);