102 .
name =
"imgextract",
struct arbelprm_rc_send_wqe rc
int optind
Current option index.
int parse_timeout(char *text, unsigned long *value)
Parse timeout value (in ms)
struct command image_archive_commands [] __command
Archive image commands.
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
Parse command-line options.
int parse_string(char *text, char **value)
Parse string value.
static struct option_descriptor imgextract_opts[]
"imgextract" option list
int parse_flag(char *text __unused, int *flag)
Parse flag.
Command line option parsing.
int imgextract(struct image *image, const char *name)
Extract archive image.
Option does not take an argument.
static struct command_descriptor imgextract_cmd
"imgextract" command descriptor
Archive image management.
const char * name
Name of the command.
void unregister_image(struct image *image)
Unregister executable image.
#define OPTION_DESC(_longopt, _shortopt, _has_arg, _struct, _field, _parse)
Construct option descriptor.
Option requires an argument.
A command-line option descriptor.
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
static int imgextract_exec(int argc, char **argv)
The "imgextract" command.
static union @438 opts
"cert<xxx>" option list
#define NULL
NULL pointer (VOID *)
int imgacquire(const char *name_uri, unsigned long timeout, struct image **image)
Acquire an image.