diff options
author | Michael Brown <mcb30@ipxe.org> | 2011-03-27 12:46:55 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2011-03-27 12:46:55 +0100 |
commit | a2464342991ccd957e252c98fa7f383fcd873bae (patch) | |
tree | 457ca9cb281695c03e5750fc7ee2fd8ac30f6508 /src/include/ipxe/parseopt.h | |
parent | 3f442d3f601306f97d21a8716ea303ee053822d1 (diff) | |
download | ipxe-a2464342991ccd957e252c98fa7f383fcd873bae.zip ipxe-a2464342991ccd957e252c98fa7f383fcd873bae.tar.gz ipxe-a2464342991ccd957e252c98fa7f383fcd873bae.tar.bz2 |
[parseopt] Add support for boolean options
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/parseopt.h')
-rw-r--r-- | src/include/ipxe/parseopt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/parseopt.h b/src/include/ipxe/parseopt.h index 4cad3cc..eed40b7 100644 --- a/src/include/ipxe/parseopt.h +++ b/src/include/ipxe/parseopt.h @@ -118,6 +118,7 @@ extern int parse_string ( const char *text, const char **value ); extern int parse_integer ( const char *text, unsigned int *value ); extern int parse_netdev ( const char *text, struct net_device **netdev ); extern int parse_image ( const char *text, struct image **image ); +extern int parse_flag ( const char *text __unused, int *flag ); extern void print_usage ( struct command_descriptor *cmd, char **argv ); extern int parse_options ( int argc, char **argv, struct command_descriptor *cmd, void *opts ); |