Skip to content

libubox: add boolean type support#43

Open
BastienSAH wants to merge 1 commit into
openwrt:masterfrom
BastienSAH:add_bool_support
Open

libubox: add boolean type support#43
BastienSAH wants to merge 1 commit into
openwrt:masterfrom
BastienSAH:add_bool_support

Conversation

@BastienSAH
Copy link
Copy Markdown

Create a distinguished BLOBMSG_TYPE_BOOL in order to differenciate int8 and boolean types (both still use BLOB_ATTR_INT8 as storage format).

Create a distinguished BLOBMSG_TYPE_BOOL in order to differenciate int8 and boolean types (both still use BLOB_ATTR_INT8 as storage format).
@BastienSAH
Copy link
Copy Markdown
Author

Ping @nbd168 @systemcrash @Alphix

@systemcrash
Copy link
Copy Markdown

Not sure how this interacts with ubus. ubus coerces u8 to bool. So bool is u8.

https://github.com/openwrt/ubus/blob/0d4bcb56f5e1386e7dc99f1ec9f3b6c9211c8ab6/cli.c#L466

Does this cause ABI breakage?

@Alphix
Copy link
Copy Markdown
Contributor

Alphix commented Apr 28, 2026

I think this might intersect with #28; so you should probably get @Noltari into the loop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants