1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-06 03:50:06 +02:00

Update protocol files.

Fixes #172
This commit is contained in:
Paul Lietar 2017-04-13 14:33:28 +02:00
parent d551d194d3
commit d95c0b3fcd
3 changed files with 889 additions and 419 deletions

View file

@ -15,6 +15,7 @@ message Frame {
repeated string recipient = 0x12;
optional bytes context_player_state = 0x13;
optional string new_name = 0x14;
optional Metadata metadata = 0x19;
}
enum MessageType {
@ -38,6 +39,7 @@ enum MessageType {
kMessageTypeLogout = 0x22;
kMessageTypeAction = 0x23;
kMessageTypeRename = 0x24;
kMessageTypeUpdateMetadata = 0x80;
}
message DeviceState {
@ -50,6 +52,8 @@ message DeviceState {
optional int64 became_active_at = 0xf;
optional string error_message = 0x10;
repeated Capability capabilities = 0x11;
optional string context_player_error = 0x14;
repeated Metadata metadata = 0x19;
}
message Capability {
@ -70,6 +74,7 @@ enum CapabilityType {
kSupportedTypes = 0x9;
kCommandAcks = 0xa;
kSupportsRename = 0xb;
kHidden = 0xc;
}
message Goodbye {
@ -120,3 +125,7 @@ message Ad {
optional bytes gid = 0x9;
}
message Metadata {
optional string type = 0x1;
optional string metadata = 0x2;
}