Repository navigation
Move repeat and shuffle status from metadata to controller state - #45
Merged
Merged
Conversation
…o controller state
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the client library to match the latest Sendspin spec by relocating repeat/shuffle playback status from the metadata role state into the controller role state (breaking API change).
Changes:
- Remove
repeat/shufflefromServerMetadataStateObjectand its delta-merge/parsing logic. - Add
repeat/shuffletoServerStateControllerObjectand parse them fromserver/statecontroller payloads. - Update TUI example and integration guide docs to read/display repeat/shuffle via the controller role.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/protocol.cpp |
Stops parsing/merging repeat/shuffle in metadata; adds parsing repeat/shuffle under controller state parsing. |
src/protocol_messages.h |
Reorders internal helper/struct placement to align with the type move (no functional behavior change observed). |
include/sendspin/metadata_role.h |
Removes repeat/shuffle fields and updates metadata role documentation accordingly. |
include/sendspin/controller_role.h |
Introduces SendspinRepeatMode here and adds repeat/shuffle to controller state + updates docs/examples in comments. |
examples/tui_client/tui.cpp |
Polls repeat/shuffle from controller state instead of metadata. |
examples/tui_client/main.cpp |
Removes metadata-based repeat/shuffle updates in the metadata listener. |
docs/integration-guide.md |
Updates controller role description and examples; removes repeat/shuffle from metadata role field list and sample code. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking change!
Moves repeat and shuffle status from the metadata state to the controller state to match the latest spec: Sendspin/spec#81