Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2a9e735 authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi
Browse files

Revert "Take arguments by const reference"

This reverts commit 069fb341.

This breaks Linux build because the function declaration doesn't match
the callback declaration. We will need to change both locations to pass
the vector by reference.

Bug: 190749285
Tag: #floss
Test: Compile for Linux
Change-Id: I8dcb1376e2d53d944190eccb2c33b933299193d4
parent 3032e692
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -88,8 +88,8 @@ static void audio_state_cb(const RawAddress& bd_addr, btav_audio_state_t state)
static void audio_config_cb(
    const RawAddress& bd_addr,
    btav_a2dp_codec_config_t codec_config,
    const std::vector<btav_a2dp_codec_config_t>& codecs_local_capabilities,
    const std::vector<btav_a2dp_codec_config_t>& codecs_selectable_capabilities) {
    std::vector<btav_a2dp_codec_config_t> codecs_local_capabilities,
    std::vector<btav_a2dp_codec_config_t> codecs_selectable_capabilities) {
  RustRawAddress addr = to_rust_address(bd_addr);
  A2dpCodecConfig cfg = to_rust_codec_config(codec_config);
  ::rust::Vec<A2dpCodecConfig> lcaps = to_rust_codec_config_vec(codecs_local_capabilities);