mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-08 23:57:21 +00:00
host/audio/pacs: allow ble_svc_audio_pacs_set params to be static const
This allows to params to be static const without any casting.
This commit is contained in:
committed by
Krzysztof Kopyściński
parent
1cf220fd12
commit
c42d6a8cfc
@@ -71,7 +71,7 @@ struct ble_svc_audio_pacs_set_param {
|
||||
* @return 0 on success;
|
||||
* A non-zero value on failure.
|
||||
*/
|
||||
int ble_svc_audio_pacs_set(uint8_t flags, struct ble_svc_audio_pacs_set_param *param);
|
||||
int ble_svc_audio_pacs_set(uint8_t flags, const struct ble_svc_audio_pacs_set_param *param);
|
||||
|
||||
/**
|
||||
* @brief Set available context types.
|
||||
|
||||
@@ -386,7 +386,7 @@ pac_notify(uint16_t chrc_uuid)
|
||||
}
|
||||
|
||||
int
|
||||
ble_svc_audio_pacs_set(uint8_t flags, struct ble_svc_audio_pacs_set_param *param)
|
||||
ble_svc_audio_pacs_set(uint8_t flags, const struct ble_svc_audio_pacs_set_param *param)
|
||||
{
|
||||
int rc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user