mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
parent
d551d194d3
commit
d95c0b3fcd
3 changed files with 889 additions and 419 deletions
|
@ -6,5 +6,5 @@ pub const FILES : &'static [(&'static str, u32)] = &[
|
||||||
("proto/mercury.proto", 709993906),
|
("proto/mercury.proto", 709993906),
|
||||||
("proto/metadata.proto", 488967056),
|
("proto/metadata.proto", 488967056),
|
||||||
("proto/pubsub.proto", 2686584829),
|
("proto/pubsub.proto", 2686584829),
|
||||||
("proto/spirc.proto", 400998103),
|
("proto/spirc.proto", 3618770573),
|
||||||
];
|
];
|
||||||
|
|
|
@ -15,6 +15,7 @@ message Frame {
|
||||||
repeated string recipient = 0x12;
|
repeated string recipient = 0x12;
|
||||||
optional bytes context_player_state = 0x13;
|
optional bytes context_player_state = 0x13;
|
||||||
optional string new_name = 0x14;
|
optional string new_name = 0x14;
|
||||||
|
optional Metadata metadata = 0x19;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum MessageType {
|
enum MessageType {
|
||||||
|
@ -38,6 +39,7 @@ enum MessageType {
|
||||||
kMessageTypeLogout = 0x22;
|
kMessageTypeLogout = 0x22;
|
||||||
kMessageTypeAction = 0x23;
|
kMessageTypeAction = 0x23;
|
||||||
kMessageTypeRename = 0x24;
|
kMessageTypeRename = 0x24;
|
||||||
|
kMessageTypeUpdateMetadata = 0x80;
|
||||||
}
|
}
|
||||||
|
|
||||||
message DeviceState {
|
message DeviceState {
|
||||||
|
@ -50,6 +52,8 @@ message DeviceState {
|
||||||
optional int64 became_active_at = 0xf;
|
optional int64 became_active_at = 0xf;
|
||||||
optional string error_message = 0x10;
|
optional string error_message = 0x10;
|
||||||
repeated Capability capabilities = 0x11;
|
repeated Capability capabilities = 0x11;
|
||||||
|
optional string context_player_error = 0x14;
|
||||||
|
repeated Metadata metadata = 0x19;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Capability {
|
message Capability {
|
||||||
|
@ -70,6 +74,7 @@ enum CapabilityType {
|
||||||
kSupportedTypes = 0x9;
|
kSupportedTypes = 0x9;
|
||||||
kCommandAcks = 0xa;
|
kCommandAcks = 0xa;
|
||||||
kSupportsRename = 0xb;
|
kSupportsRename = 0xb;
|
||||||
|
kHidden = 0xc;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Goodbye {
|
message Goodbye {
|
||||||
|
@ -120,3 +125,7 @@ message Ad {
|
||||||
optional bytes gid = 0x9;
|
optional bytes gid = 0x9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message Metadata {
|
||||||
|
optional string type = 0x1;
|
||||||
|
optional string metadata = 0x2;
|
||||||
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue