diff options
author | David Teigland <teigland@redhat.com> | 2017-03-07 11:47:44 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-03-08 11:03:02 -0600 |
commit | 690f60473352e9909df95fae96a5d99b8b0c9db7 (patch) | |
tree | 2f62dcad94b66eccc419675703284b25185e3765 /tools/tools.h | |
parent | f48e6b2690c43120ec87e4fa913b2bd952a53511 (diff) | |
download | lvm2-690f60473352e9909df95fae96a5d99b8b0c9db7.tar.gz |
commands: combine duplicate arrays for opt and val
command.c and lvmcmdline.c each had a full array defining
all options and values. This duplication was not removed
when the command.c code was merged into the run time.
Diffstat (limited to 'tools/tools.h')
-rw-r--r-- | tools/tools.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tools/tools.h b/tools/tools.h index f2c926fe6..cb3ffa09c 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -108,32 +108,12 @@ struct arg_values { /* void *ptr; // Currently not used. */ }; -/* a global table of possible --option's */ -struct arg_props { - int arg_enum; /* foo_ARG from args.h */ - const char short_arg; - char _padding[7]; - const char *long_arg; - int val_enum; /* foo_VAL from vals.h */ - uint32_t flags; - uint32_t prio; - const char *desc; -}; - struct arg_value_group_list { struct dm_list list; struct arg_values arg_values[0]; uint32_t prio; }; -/* a global table of possible --option values */ -struct val_props { - int val_enum; /* foo_VAL from vals.h */ - int (*fn) (struct cmd_context *cmd, struct arg_values *av); - const char *name; - const char *usage; -}; - /* a global table of possible LV properties */ struct lv_props { int lvp_enum; /* is_foo_LVP from lv_props.h */ |