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:
parent
55948988e8
commit
4be3b50dcc
@ -110,6 +110,17 @@
|
|||||||
.help = _helpstr \
|
.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 struct _virshControl virshControl;
|
||||||
typedef virshControl *virshControlPtr;
|
typedef virshControl *virshControlPtr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user