Bluetooth: GATT: allow references to const uuids
User and implementation code may change the uuid pointer stored in discover and gatt_read parameter structures, but it should never mutate the pointed-to-value. Add a const qualifer so UUIDs stored in flash can be referenced. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
parent
2115b575a4
commit
2f269b2ecf
|
@ -1090,7 +1090,7 @@ enum {
|
|||
/** @brief GATT Discover Attributes parameters */
|
||||
struct bt_gatt_discover_params {
|
||||
/** Discover UUID type */
|
||||
struct bt_uuid *uuid;
|
||||
const struct bt_uuid *uuid;
|
||||
/** Discover attribute callback */
|
||||
bt_gatt_discover_func_t func;
|
||||
union {
|
||||
|
@ -1184,7 +1184,7 @@ struct bt_gatt_read_params {
|
|||
struct {
|
||||
uint16_t start_handle;
|
||||
uint16_t end_handle;
|
||||
struct bt_uuid *uuid;
|
||||
const struct bt_uuid *uuid;
|
||||
} by_uuid;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue