mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virsh: Inline VIRSH_COMMON_OPT_NETWORK_OT_STRING macro
The macro is used in just one place and the definition of the option is going to be modified. Inline the macro. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d2e29eb74c
commit
1f3f9c81da
@ -43,17 +43,6 @@
|
||||
#define VIRSH_COMMON_OPT_NETWORK_FULL(cflags) \
|
||||
VIRSH_COMMON_OPT_NETWORK(N_("network name or uuid"), 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)
|
||||
|
||||
#define VIRSH_COMMON_OPT_NETWORK_PORT(cflags) \
|
||||
{.name = "port", \
|
||||
.type = VSH_OT_STRING, \
|
||||
@ -1587,7 +1576,11 @@ static const vshCmdInfo info_network_event = {
|
||||
};
|
||||
|
||||
static const vshCmdOptDef opts_network_event[] = {
|
||||
VIRSH_COMMON_OPT_NETWORK_OT_STRING(N_("filter by network name or uuid"), 0),
|
||||
{.name = "network",
|
||||
.type = VSH_OT_STRING,
|
||||
.help = N_("filter by network name or uuid"),
|
||||
.completer = virshNetworkNameCompleter,
|
||||
},
|
||||
{.name = "event",
|
||||
.type = VSH_OT_STRING,
|
||||
.completer = virshNetworkEventNameCompleter,
|
||||
|
Loading…
Reference in New Issue
Block a user