diff options
author | alk3pInjection <webmaster@raspii.tech> | 2022-09-02 21:23:16 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-09-02 21:23:16 +0800 |
commit | 0663b8452920b4d8dbc175e70940e7ca9843dc06 (patch) | |
tree | 9f40642a12b399a41786f52ee9bdea20470f5040 | |
parent | fd44afebdcad9cfcaf4b29e979f1d6acc6c917f2 (diff) |
Output:
In file included from vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/jni/com_android_bluetooth_a2dp_sink.cpp:22:
packages/modules/Bluetooth/system/include/hardware/bt_av.h:132:15: error: anonymous non-C-compatible type given name for linkage purposes by typedef declaration after its linkage was computed; add a tag name here to establish linkage prior to definition
typedef struct {
^
btav_a2dp_codec_config_t
packages/modules/Bluetooth/system/include/hardware/bt_av.h:147:3: note: type is not C-compatible due to this member declaration
std::string ToString() const {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
packages/modules/Bluetooth/system/include/hardware/bt_av.h:261:3: note: type is given name 'btav_a2dp_codec_config_t' for linkage purposes by this typedef declaration
} btav_a2dp_codec_config_t;
^
1 error generated.
Change-Id: I6a1ae5cbcaea50312091f3f42bc9d8184206fab4
-rw-r--r-- | system/include/hardware/bt_av.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/include/hardware/bt_av.h b/system/include/hardware/bt_av.h index 3fe99a9fba..63259cd0c9 100644 --- a/system/include/hardware/bt_av.h +++ b/system/include/hardware/bt_av.h @@ -129,7 +129,7 @@ typedef enum { * For codec capability, fields "sample_rate", "bits_per_sample" and * "channel_mode" can contain bit-masks with all supported features. */ -typedef struct { +struct btav_a2dp_codec_config_t { btav_a2dp_codec_index_t codec_type; btav_a2dp_codec_priority_t codec_priority; // Codec selection priority @@ -258,7 +258,7 @@ typedef struct { result += name; return result; } -} btav_a2dp_codec_config_t; +}; typedef struct { btav_a2dp_scmst_enable_status_t enable_status; |