1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

virsh: Create macros for VSH_OT_STRING "domain" option

Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Lin Ma 2018-05-08 22:20:32 +08:00 committed by Michal Privoznik
parent 55948988e8
commit 4be3b50dcc

View File

@ -110,6 +110,17 @@
.help = _helpstr \
}
# define VIRSH_COMMON_OPT_DOMAIN_OT_STRING(_helpstr, cflags) \
{.name = "domain", \
.type = VSH_OT_STRING, \
.help = _helpstr, \
.completer = virshDomainNameCompleter, \
.completer_flags = cflags, \
}
# define VIRSH_COMMON_OPT_DOMAIN_OT_STRING_FULL(cflags) \
VIRSH_COMMON_OPT_DOMAIN_OT_STRING(N_("domain name, id or uuid"), cflags)
typedef struct _virshControl virshControl;
typedef virshControl *virshControlPtr;