Repository navigation
The channel of a claim: view properties, .change handlers, EMIT (format 0.6) - #18
Merged
Merged
Conversation
…at 0.6) A claim is now also the channel between the application and its view: - properties (.prop variables) the application sets and reads by name - libdmview_prop_set_int/_set_string/_get_int/_get_string -, read from the view file when it is claimed, so a name or a type the view does not have is an error at once; names are the view's own, nothing global; - what the application sets is taken into the view on the service's thread (libdmview_update()), running the view's .change handlers; what the view sets itself is what the application reads; - events the view emits (EMIT "name", n) queue in the claim (16, the oldest dropped and counted) for libdmview_wait_event(). Claims are objects of their own now, so a thread waiting for events keeps one until it is done even when it is released. The dmview service attaches the view it shows to the display's newest claim (libdmview_attach()). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 11, 2026
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.
Summary
A claim is now the channel between the application and the view it claimed the display for (format 0.6):
.propvariables the application sets and reads by name withlibdmview_prop_set_int/_set_string/_get_int/_get_string. They are read from the view file at claim time, so a wrong name or type fails immediately. Names belong to the view; nothing is global.libdmview_update(), latency ≤ 100 ms) and runs the view's.changehandlers.EMIT "name", nqueues in the claim (16 entries, the oldest dropped and counted indropped) forlibdmview_wait_event().libdmview_attach()).Used by carhmi-demo's MP3 player (track list, play/pause, progress driven from C, buttons sending events).
Order
Needs todmv with format 0.6 released (choco-technologies/todmv - feature/claim-channel) for the test fixtures.
Test plan
ctest: 26/26, includinglibdmview_claims_are_channels🤖 Generated with Claude Code