aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-02-29 14:05:39 +0000
committerMichael Brown <mcb30@ipxe.org>2024-02-29 15:20:44 +0000
commit7cd73884e51f6d3649aa2ea0ed0cec0b39192f61 (patch)
tree8d63995a240fb0b99c7ddcf3e1a3ed6efa281a10 /src/include
parent0eb8fbd0bfc9331ecdcd74c9406251e5a6e450af (diff)
downloadipxe-7cd73884e51f6d3649aa2ea0ed0cec0b39192f61.zip
ipxe-7cd73884e51f6d3649aa2ea0ed0cec0b39192f61.tar.gz
ipxe-7cd73884e51f6d3649aa2ea0ed0cec0b39192f61.tar.bz2
[parseopt] Add parse_uuid() for parsing UUID command-line arguments
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/parseopt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ipxe/parseopt.h b/src/include/ipxe/parseopt.h
index 829b343..ebd1880 100644
--- a/src/include/ipxe/parseopt.h
+++ b/src/include/ipxe/parseopt.h
@@ -11,6 +11,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdint.h>
#include <stddef.h>
+#include <ipxe/uuid.h>
#include <ipxe/settings.h>
struct net_device;
@@ -128,6 +129,7 @@ struct named_setting {
extern int parse_string ( char *text, char **value );
extern int parse_integer ( char *text, unsigned int *value );
extern int parse_timeout ( char *text, unsigned long *value );
+extern int parse_uuid ( char *text, union uuid *value );
extern int parse_netdev ( char *text, struct net_device **netdev );
extern int
parse_netdev_configurator ( char *text,