bluetooth: `bt_le_ext_adv_start_param` is const
`bt_le_ext_adv_start` does not modify the `param` argument, which can therefore be marked as `const`. This allows the struct to exist purely in ROM. Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
parent
243eb36b18
commit
40eededf01
|
@ -1241,7 +1241,7 @@ struct bt_le_ext_adv_start_param {
|
|||
* @param param Advertise start parameters.
|
||||
*/
|
||||
int bt_le_ext_adv_start(struct bt_le_ext_adv *adv,
|
||||
struct bt_le_ext_adv_start_param *param);
|
||||
const struct bt_le_ext_adv_start_param *param);
|
||||
|
||||
/**
|
||||
* @brief Stop advertising with the given advertising set
|
||||
|
|
|
@ -1613,7 +1613,7 @@ int bt_le_ext_adv_update_param(struct bt_le_ext_adv *adv,
|
|||
}
|
||||
|
||||
int bt_le_ext_adv_start(struct bt_le_ext_adv *adv,
|
||||
struct bt_le_ext_adv_start_param *param)
|
||||
const struct bt_le_ext_adv_start_param *param)
|
||||
{
|
||||
struct bt_conn *conn = NULL;
|
||||
int err;
|
||||
|
|
Loading…
Reference in New Issue