mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
virsh: Inline only use of VIRSH_COMMON_OPT_DOMAIN_OT_ARGV macro
There's just one command taking a list of domains as argument, thus declare it inline. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
34151214f3
commit
162b184d0e
@ -2048,7 +2048,11 @@ static const vshCmdOptDef opts_domstats[] = {
|
||||
.type = VSH_OT_BOOL,
|
||||
.help = N_("report only stats that are accessible instantly"),
|
||||
},
|
||||
VIRSH_COMMON_OPT_DOMAIN_OT_ARGV(N_("list of domains to get stats for"), 0),
|
||||
{.name = "domain",
|
||||
.type = VSH_OT_ARGV,
|
||||
.help = N_("list of domains to get stats for"),
|
||||
.completer = virshDomainNameCompleter,
|
||||
},
|
||||
{.name = NULL}
|
||||
};
|
||||
|
||||
|
@ -119,18 +119,6 @@
|
||||
VIRSH_COMMON_OPT_DOMAIN_OT_STRING(N_("domain name, id or uuid"), \
|
||||
oflags, cflags)
|
||||
|
||||
#define VIRSH_COMMON_OPT_DOMAIN_OT_ARGV(_helpstr, cflags) \
|
||||
{.name = "domain", \
|
||||
.type = VSH_OT_ARGV, \
|
||||
.flags = VSH_OFLAG_NONE, \
|
||||
.help = _helpstr, \
|
||||
.completer = virshDomainNameCompleter, \
|
||||
.completer_flags = cflags, \
|
||||
}
|
||||
|
||||
#define VIRSH_COMMON_OPT_DOMAIN_OT_ARGV_FULL(cflags) \
|
||||
VIRSH_COMMON_OPT_DOMAIN_OT_ARGV(N_("domain name, id or uuid"), cflags)
|
||||
|
||||
typedef struct _virshControl virshControl;
|
||||
|
||||
typedef struct _virshCtrlData virshCtrlData;
|
||||
|
Loading…
Reference in New Issue
Block a user