zephyr/tests/bluetooth/audio/mocks/include/gatt.h
Fredrik Danebjer c9da274eb2 Bluetooth: ascs: Add dynamic ASE registration
Added option to set the ASE count through the bap API, making ASE
configuration runtime available. The upper limit of ASEs are still
bound by the Kconfig options set for ASEs.

Signed-off-by: Fredrik Danebjer <frdn@demant.com>
2024-09-11 07:41:12 -04:00

27 lines
709 B
C

/*
* Copyright (c) 2023 Codecoup
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef MOCKS_GATT_H_
#define MOCKS_GATT_H_
#include <zephyr/fff.h>
#include <zephyr/bluetooth/gatt.h>
void mock_bt_gatt_init(void);
void mock_bt_gatt_cleanup(void);
DECLARE_FAKE_VALUE_FUNC(int, mock_bt_gatt_notify_cb, struct bt_conn *,
struct bt_gatt_notify_params *);
DECLARE_FAKE_VALUE_FUNC(bool, mock_bt_gatt_is_subscribed, struct bt_conn *,
const struct bt_gatt_attr *, uint16_t);
void bt_gatt_notify_cb_reset(void);
uint16_t bt_gatt_get_mtu(struct bt_conn *conn);
int bt_gatt_service_register(struct bt_gatt_service *svc);
int bt_gatt_service_unregister(struct bt_gatt_service *svc);
#endif /* MOCKS_GATT_H_ */