]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[settings] Add parsing for UUID and GUID settings types
authorMichael Brown <mcb30@ipxe.org>
Thu, 29 Feb 2024 14:04:47 +0000 (14:04 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 29 Feb 2024 15:20:44 +0000 (15:20 +0000)
commit0eb8fbd0bfc9331ecdcd74c9406251e5a6e450af
treed97117bda5d15127bbb272ef70a007ee14aebc62
parentda7b2662890dfb284786f37237a6c92809eee217
[settings] Add parsing for UUID and GUID settings types

The ":uuid" and ":guid" settings types are currently format-only: it
is possible to format a setting as a UUID (via e.g. "show foo:uuid")
but it is not currently possible to parse a string into a UUID setting
(via e.g. "set foo:uuid 406343fe-998b-44be-8a28-44ca38cb202b").

Use uuid_aton() to implement parsing of these settings types, and add
appropriate test cases for both.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/settings.c
src/tests/settings_test.c