2015-09-14 23:48:26 +08:00
|
|
|
/** @file
|
|
|
|
* @brief Internal API for Generic Attribute Profile handling.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2016-06-10 17:10:18 +08:00
|
|
|
* Copyright (c) 2015-2016 Intel Corporation
|
2015-09-14 23:48:26 +08:00
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-09-14 23:48:26 +08:00
|
|
|
*/
|
|
|
|
|
2017-06-02 20:51:54 +08:00
|
|
|
void bt_gatt_init(void);
|
2015-09-14 23:48:26 +08:00
|
|
|
void bt_gatt_connected(struct bt_conn *conn);
|
|
|
|
void bt_gatt_disconnected(struct bt_conn *conn);
|
2015-09-08 18:47:33 +08:00
|
|
|
|
2017-08-09 14:21:11 +08:00
|
|
|
#if defined(CONFIG_BT_GATT_CLIENT)
|
2017-04-21 01:00:29 +08:00
|
|
|
void bt_gatt_notification(struct bt_conn *conn, u16_t handle,
|
|
|
|
const void *data, u16_t length);
|
2015-09-08 18:47:33 +08:00
|
|
|
#else
|
2017-04-21 01:00:29 +08:00
|
|
|
static inline void bt_gatt_notification(struct bt_conn *conn, u16_t handle,
|
|
|
|
const void *data, u16_t length)
|
2015-09-08 18:47:33 +08:00
|
|
|
{
|
|
|
|
}
|
2017-08-09 14:21:11 +08:00
|
|
|
#endif /* CONFIG_BT_GATT_CLIENT */
|