From 3b84583e5c467cd525e1cfbb490f0f7a71e99631 Mon Sep 17 00:00:00 2001 From: chmanie Date: Fri, 9 Jun 2023 16:43:05 +0200 Subject: [PATCH] Move shuffle and repeat to QueueModifiers --- crabidy-core/crabidy/v1/crabidy.proto | 29 ++++++++++++++++----------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/crabidy-core/crabidy/v1/crabidy.proto b/crabidy-core/crabidy/v1/crabidy.proto index f1f00da..420cbe0 100644 --- a/crabidy-core/crabidy/v1/crabidy.proto +++ b/crabidy-core/crabidy/v1/crabidy.proto @@ -34,11 +34,12 @@ service CrabidyService { message InitRequest {} message InitResponse { Queue queue = 1; - QueueTrack queue_track = 2; - PlayState play_state = 3; - float volume = 4; - bool mute = 5; - TrackPosition position = 6; + QueueModifiers mods = 2; + QueueTrack queue_track = 3; + PlayState play_state = 4; + float volume = 5; + bool mute = 6; + TrackPosition position = 7; } // Library @@ -97,11 +98,12 @@ message GetUpdateStreamRequest {} message GetUpdateStreamResponse { oneof update { Queue queue = 1; - QueueTrack queue_track = 2; - PlayState play_state = 3; - float volume = 4; - bool mute = 5; - TrackPosition position = 6; + QueueModifiers mods = 2; + QueueTrack queue_track = 3; + PlayState play_state = 4; + float volume = 5; + bool mute = 6; + TrackPosition position = 7; } } @@ -135,13 +137,16 @@ message LibraryNodeChild { string title = 2; } +message QueueModifiers { + bool shuffle = 1; + bool repeat = 2; +} + message Queue { uint64 timestamp = 1; uint32 current_position = 2; // Without album repeated Track tracks = 3; - bool shuffle = 4; - bool repeat = 5; } message QueueTrack {