Skip to content

Took lch_patch_inject value via typed lch_cell_t#173

Merged
larsewi merged 1 commit into
masterfrom
inject-cell-type
May 16, 2026
Merged

Took lch_patch_inject value via typed lch_cell_t#173
larsewi merged 1 commit into
masterfrom
inject-cell-type

Conversation

@larsewi
Copy link
Copy Markdown
Owner

@larsewi larsewi commented May 15, 2026

Adds a tagged-union lch_cell_t to the C API and switches lch_patch_inject to accept it in place of the (value, kind) string pair. The Rust Patch::inject_field now takes a Cell directly and rejects Cell::Null. The new type is general-purpose and will be reused in a follow-up PR.

@larsewi larsewi added the breaking Incompatible API change label May 15, 2026
Replaces the (value, kind) string pair with an lch_cell_t tagged union
so callers pass typed values directly. Patch::inject_field now takes a
Cell and rejects NULL.

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi larsewi force-pushed the inject-cell-type branch from 41a456b to 80fa811 Compare May 16, 2026 11:03
@larsewi larsewi marked this pull request as ready for review May 16, 2026 11:04
@larsewi larsewi merged commit e3e0ad5 into master May 16, 2026
7 checks passed
@larsewi larsewi deleted the inject-cell-type branch May 16, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Incompatible API change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant