mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
virsh-network: Create macros for VSH_OT_STRING "network" option
Signed-off-by: Lin Ma <lma@suse.com>
This commit is contained in:
parent
a4bbd30400
commit
de97d5600c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user