mirror of https://gitee.com/openkylin/libvirt.git
virsh: Create macros for VSH_OT_ARGV "domain" option
Signed-off-by: Lin Ma <lma@suse.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
0d1c1a74b7
commit
90396d795a
|
@ -121,6 +121,18 @@
|
|||
# define VIRSH_COMMON_OPT_DOMAIN_OT_STRING_FULL(cflags) \
|
||||
VIRSH_COMMON_OPT_DOMAIN_OT_STRING(N_("domain name, id or uuid"), 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 virshControl *virshControlPtr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue