mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 10:21:49 +00:00
avrcp_browsing_controller: rename field
This commit is contained in:
parent
6a2e66bec5
commit
d2fe8c23c6
@ -58,7 +58,7 @@ extern "C" {
|
||||
|
||||
#define AVRCP_BROWSING_ITEM_HEADER_LEN 3
|
||||
#define AVRCP_BROWSING_MAX_NUM_ATTR_IDS 8
|
||||
#define AVRCP_DISPLAYABLE_NAME_MAX_LENGTH 15
|
||||
#define AVRCP_DISPLAYABLE_NAME_MAX_LENGTH 20
|
||||
#define AVRCP_ATTRIBUTES_MAX_NUM 10
|
||||
|
||||
#define AVRCP_MAX_AV_C_MESSAGE_FRAME_SIZE 512
|
||||
@ -569,7 +569,7 @@ typedef struct {
|
||||
uint16_t browsed_player_id;
|
||||
|
||||
avrcp_browsing_scope_t scope;
|
||||
uint8_t folder_uid[8]; // or media element
|
||||
uint8_t item_uid[8]; // or media element
|
||||
uint16_t uid_counter;
|
||||
|
||||
// get folder item
|
||||
|
@ -129,7 +129,7 @@ static int avrcp_browsing_controller_send_get_item_attributes_cmd(uint16_t cid,
|
||||
pos += 2;
|
||||
|
||||
command[pos++] = connection->scope;
|
||||
(void)memcpy(command + pos, connection->folder_uid, 8);
|
||||
(void)memcpy(command + pos, connection->item_uid, 8);
|
||||
pos += 8;
|
||||
big_endian_store_16(command, pos, connection->uid_counter);
|
||||
pos += 2;
|
||||
@ -164,7 +164,7 @@ static int avrcp_browsing_controller_send_change_path_cmd(uint16_t cid, avrcp_br
|
||||
pos += 2;
|
||||
pos += 2;
|
||||
command[pos++] = connection->direction;
|
||||
(void)memcpy(command + pos, connection->folder_uid, 8);
|
||||
(void)memcpy(command + pos, connection->item_uid, 8);
|
||||
pos += 8;
|
||||
return l2cap_send(cid, command, pos);
|
||||
}
|
||||
@ -542,7 +542,7 @@ uint8_t avrcp_browsing_controller_get_item_attributes_for_scope(uint16_t avrcp_b
|
||||
|
||||
connection->get_item_attributes = 1;
|
||||
connection->scope = scope;
|
||||
(void)memcpy(connection->folder_uid, uid, 8);
|
||||
(void)memcpy(connection->item_uid, uid, 8);
|
||||
connection->uid_counter = uid_counter;
|
||||
connection->attr_bitmap = attr_bitmap;
|
||||
|
||||
@ -643,9 +643,9 @@ uint8_t avrcp_browsing_controller_change_path(uint16_t avrcp_browsing_cid, uint8
|
||||
}
|
||||
connection->change_path = 1;
|
||||
connection->direction = direction;
|
||||
memset(connection->folder_uid, 0, 8);
|
||||
memset(connection->item_uid, 0, 8);
|
||||
if (folder_uid){
|
||||
(void)memcpy(connection->folder_uid, folder_uid, 8);
|
||||
(void)memcpy(connection->item_uid, folder_uid, 8);
|
||||
}
|
||||
|
||||
avrcp_browsing_request_can_send_now(connection, connection->l2cap_browsing_cid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user