diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-03-24 01:16:37 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-03-24 23:12:04 +0000 |
commit | 1c127a696215bd75917c3ba836c2db11636b3ffb (patch) | |
tree | bd883060a15bfae71aef090481f9ea67d4fb43bc /src/include/ipxe/parseopt.h | |
parent | 4766b1455f590760af778262be1fe2963a1549a1 (diff) | |
download | ipxe-1c127a696215bd75917c3ba836c2db11636b3ffb.zip ipxe-1c127a696215bd75917c3ba836c2db11636b3ffb.tar.gz ipxe-1c127a696215bd75917c3ba836c2db11636b3ffb.tar.bz2 |
[image] Simplify image management commands and internal API
Remove the name, cmdline, and action parameters from imgdownload() and
imgdownload_string(). These functions now simply download and return
an image.
Add the function imgacquire(), which will interpret a "name or URI
string" parameter and return either an existing image or a newly
downloaded image.
Use imgacquire() to merge similar image-management commands that
currently differ only by whether they take the name of an existing
image or the URI of a new image to download. For example, "chain" and
"imgexec" can now be merged.
Extend imgstat and imgfree commands to take an optional list of
images.
Remove the arbitrary restriction on the length of image names.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/parseopt.h')
-rw-r--r-- | src/include/ipxe/parseopt.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/include/ipxe/parseopt.h b/src/include/ipxe/parseopt.h index 8c456a6..e54dac6 100644 --- a/src/include/ipxe/parseopt.h +++ b/src/include/ipxe/parseopt.h @@ -13,7 +13,6 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <stddef.h> struct net_device; -struct image; /** A command-line option descriptor */ struct option_descriptor { @@ -117,7 +116,6 @@ struct command_descriptor { 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 reparse_options ( int argc, char **argv, |