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

virsh-network: Create macros for VSH_OT_STRING "network" option

Signed-off-by: NLin Ma <lma@suse.com>
上级 a4bbd304
...@@ -43,6 +43,17 @@ ...@@ -43,6 +43,17 @@
.completer_flags = cflags, \ .completer_flags = cflags, \
} }
#define VIRSH_COMMON_OPT_NETWORK_OT_STRING(_helpstr, cflags) \
{.name = "network", \
.type = VSH_OT_STRING, \
.help = _helpstr, \
.completer = virshNetworkNameCompleter, \
.completer_flags = cflags, \
}
#define VIRSH_COMMON_OPT_NETWORK_OT_STRING_FULL(cflags) \
VIRSH_COMMON_OPT_NETWORK_OT_STRING(N_("network name or uuid"), cflags)
virNetworkPtr virNetworkPtr
virshCommandOptNetworkBy(vshControl *ctl, const vshCmd *cmd, virshCommandOptNetworkBy(vshControl *ctl, const vshCmd *cmd,
const char **name, unsigned int flags) const char **name, unsigned int flags)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册