Browse Source

Update protobuf definition

Paul Lietar 9 years ago
parent
commit
8d8aad8191
2 changed files with 7 additions and 7 deletions
  1. 4 4
      protocol/proto/metadata.proto
  2. 3 3
      protocol/proto/spirc.proto

+ 4 - 4
protocol/proto/metadata.proto

@@ -152,11 +152,11 @@ message AudioFile {
         MP3_320 = 0x4;
         MP3_160 = 0x5;
         MP3_96 = 0x6;
-        OTHER = 0x7;
+        MP3_160_ENC = 0x7;
         OTHER2 = 0x8;
-	OTHER3 = 0x9;
-	OTHER4 = 0xa;
-	OTHER5 = 0xb;
+        OTHER3 = 0x9;
+        AAC_160 = 0xa;
+        AAC_320 = 0xb;
     }
 }
 

+ 3 - 3
protocol/proto/spirc.proto

@@ -12,6 +12,7 @@ message Frame {
     optional int64 state_update_id = 0x11;
     repeated string recipient = 0x12;
     optional bytes context_player_state = 0x13;
+    optional string new_name = 0x14;
 }
 
 enum MessageType {
@@ -34,6 +35,7 @@ enum MessageType {
     kMessageTypeReplace = 0x21;
     kMessageTypeLogout = 0x22;
     kMessageTypeAction = 0x23;
+    kMessageTypeRename = 0x24;
 }
 
 message DeviceState {
@@ -46,8 +48,6 @@ message DeviceState {
     optional int64 became_active_at = 0xf;
     optional string error_message = 0x10;
     repeated Capability capabilities = 0x11;
-    repeated string local_uris = 0x12;
-    repeated int32 enc_key = 0x13;
 }
 
 message Capability {
@@ -67,7 +67,7 @@ enum CapabilityType {
     kVolumeSteps = 0x8;
     kSupportedTypes = 0x9;
     kCommandAcks = 0xa;
-    kUnknown = 0xb;
+    kSupportsRename = 0xb;
 }
 
 message Goodbye {