mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-15 02:46:57 +01:00
Add UNKNOWN to remote control proto to make backwards compatible changes
easier later.
This commit is contained in:
parent
555467e764
commit
088d179e9b
@ -1,13 +1,14 @@
|
|||||||
package pb.remote;
|
package pb.remote;
|
||||||
|
|
||||||
enum MsgType {
|
enum MsgType {
|
||||||
|
UNKNOWN = 0;
|
||||||
// Messages generally send from client to server
|
// Messages generally send from client to server
|
||||||
CONNECT = 0;
|
CONNECT = 1;
|
||||||
DISCONNECT = 1;
|
DISCONNECT = 2;
|
||||||
REQUEST_PLAYLISTS = 2;
|
REQUEST_PLAYLISTS = 3;
|
||||||
REQUEST_PLAYLIST_SONGS = 3;
|
REQUEST_PLAYLIST_SONGS = 4;
|
||||||
CHANGE_SONG = 4;
|
CHANGE_SONG = 5;
|
||||||
SET_VOLUME = 5;
|
SET_VOLUME = 6;
|
||||||
|
|
||||||
// Messages send by both
|
// Messages send by both
|
||||||
PLAY = 20;
|
PLAY = 20;
|
||||||
@ -35,7 +36,7 @@ enum EngineState {
|
|||||||
|
|
||||||
message Message {
|
message Message {
|
||||||
required int32 version = 1 [default=1];
|
required int32 version = 1 [default=1];
|
||||||
required MsgType msgType = 2;
|
required MsgType msgType = 2 [default=UNKNOWN];
|
||||||
|
|
||||||
optional EngineState state = 3;
|
optional EngineState state = 3;
|
||||||
optional ClementineInfo info = 4;
|
optional ClementineInfo info = 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user