36
36
struct bt_ascs_ase_status {
37
37
uint8_t id ;
38
38
uint8_t state ;
39
- uint8_t params [0 ];
39
+ uint8_t params [];
40
40
} __packed ;
41
41
42
42
struct bt_ascs_codec_config {
43
43
uint8_t len ;
44
44
uint8_t type ;
45
- uint8_t data [0 ];
45
+ uint8_t data [];
46
46
} __packed ;
47
47
48
48
struct bt_ascs_codec {
@@ -66,7 +66,7 @@ struct bt_ascs_ase_status_config {
66
66
struct bt_ascs_codec codec ;
67
67
uint8_t cc_len ;
68
68
/* LTV-formatted Codec-Specific Configuration */
69
- struct bt_ascs_codec_config cc [0 ];
69
+ struct bt_ascs_codec_config cc [];
70
70
} __packed ;
71
71
72
72
/* ASE_State = 0x02 (QoS Configured), defined in Table 4.4. */
@@ -88,7 +88,7 @@ struct bt_ascs_ase_status_enable {
88
88
uint8_t cig_id ;
89
89
uint8_t cis_id ;
90
90
uint8_t metadata_len ;
91
- uint8_t metadata [0 ];
91
+ uint8_t metadata [];
92
92
} __packed ;
93
93
94
94
/* ASE_Status = 0x04 (Streaming) defined in Table 4.5.
@@ -97,7 +97,7 @@ struct bt_ascs_ase_status_stream {
97
97
uint8_t cig_id ;
98
98
uint8_t cis_id ;
99
99
uint8_t metadata_len ;
100
- uint8_t metadata [0 ];
100
+ uint8_t metadata [];
101
101
} __packed ;
102
102
103
103
/* ASE_Status = 0x05 (Disabling) as defined in Table 4.5.
@@ -106,14 +106,14 @@ struct bt_ascs_ase_status_disable {
106
106
uint8_t cig_id ;
107
107
uint8_t cis_id ;
108
108
uint8_t metadata_len ;
109
- uint8_t metadata [0 ];
109
+ uint8_t metadata [];
110
110
} __packed ;
111
111
112
112
/* ASE Control Point Protocol */
113
113
struct bt_ascs_ase_cp {
114
114
/* Request/Notification opcode */
115
115
uint8_t op ;
116
- uint8_t pdu [0 ];
116
+ uint8_t pdu [];
117
117
} __packed ;
118
118
119
119
/* Opcodes */
@@ -139,14 +139,14 @@ struct bt_ascs_config {
139
139
/* Codec Specific Config Length */
140
140
uint8_t cc_len ;
141
141
/* LTV-formatted Codec-Specific Configuration */
142
- struct bt_ascs_codec_config cc [0 ];
142
+ struct bt_ascs_codec_config cc [];
143
143
} __packed ;
144
144
145
145
struct bt_ascs_config_op {
146
146
/* Number of ASEs */
147
147
uint8_t num_ases ;
148
148
/* Config Parameters */
149
- struct bt_ascs_config cfg [0 ];
149
+ struct bt_ascs_config cfg [];
150
150
} __packed ;
151
151
152
152
#define BT_ASCS_QOS_OP 0x02
@@ -177,7 +177,7 @@ struct bt_ascs_qos_op {
177
177
/* Number of ASEs */
178
178
uint8_t num_ases ;
179
179
/* QoS Parameters */
180
- struct bt_ascs_qos qos [0 ];
180
+ struct bt_ascs_qos qos [];
181
181
} __packed ;
182
182
183
183
#define BT_ASCS_ENABLE_OP 0x03
@@ -187,54 +187,54 @@ struct bt_ascs_metadata {
187
187
/* Metadata length */
188
188
uint8_t len ;
189
189
/* LTV-formatted Metadata */
190
- uint8_t data [0 ];
190
+ uint8_t data [];
191
191
} __packed ;
192
192
193
193
struct bt_ascs_enable_op {
194
194
/* Number of ASEs */
195
195
uint8_t num_ases ;
196
196
/* Metadata */
197
- struct bt_ascs_metadata metadata [0 ];
197
+ struct bt_ascs_metadata metadata [];
198
198
} __packed ;
199
199
200
200
#define BT_ASCS_START_OP 0x04
201
201
struct bt_ascs_start_op {
202
202
/* Number of ASEs */
203
203
uint8_t num_ases ;
204
204
/* ASE IDs */
205
- uint8_t ase [0 ];
205
+ uint8_t ase [];
206
206
} __packed ;
207
207
208
208
#define BT_ASCS_DISABLE_OP 0x05
209
209
struct bt_ascs_disable_op {
210
210
/* Number of ASEs */
211
211
uint8_t num_ases ;
212
212
/* ASE IDs */
213
- uint8_t ase [0 ];
213
+ uint8_t ase [];
214
214
} __packed ;
215
215
216
216
#define BT_ASCS_STOP_OP 0x06
217
217
struct bt_ascs_stop_op {
218
218
/* Number of ASEs */
219
219
uint8_t num_ases ;
220
220
/* ASE IDs */
221
- uint8_t ase [0 ];
221
+ uint8_t ase [];
222
222
} __packed ;
223
223
224
224
#define BT_ASCS_METADATA_OP 0x07
225
225
struct bt_ascs_metadata_op {
226
226
/* Number of ASEs */
227
227
uint8_t num_ases ;
228
228
/* Metadata */
229
- struct bt_ascs_metadata metadata [0 ];
229
+ struct bt_ascs_metadata metadata [];
230
230
} __packed ;
231
231
232
232
#define BT_ASCS_RELEASE_OP 0x08
233
233
struct bt_ascs_release_op {
234
234
/* Number of ASEs */
235
235
uint8_t num_ases ;
236
236
/* Ase IDs */
237
- uint8_t ase [0 ];
237
+ uint8_t ase [];
238
238
} __packed ;
239
239
240
240
struct bt_ascs_cp_ase_rsp {
@@ -252,7 +252,7 @@ struct bt_ascs_cp_rsp {
252
252
/* Number of ASEs */
253
253
uint8_t num_ase ;
254
254
/* ASE response */
255
- struct bt_ascs_cp_ase_rsp ase_rsp [0 ];
255
+ struct bt_ascs_cp_ase_rsp ase_rsp [];
256
256
} __packed ;
257
257
258
258
static inline const char * bt_ascs_op_str (uint8_t op )
0 commit comments