提交 4be3b50d 编写于 作者: L Lin Ma 提交者: Michal Privoznik

virsh: Create macros for VSH_OT_STRING "domain" option

Signed-off-by: NLin Ma <lma@suse.com>
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 55948988
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册