mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-10 07:20:02 +00:00
vsh: Introduce simple version of VSH_ALTERNATIVE_OPTIONS_EXPR
VSH_ALTERNATIVE_OPTIONS takes just the name of the options instead of requiring also the getter functions. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
59ec4c6619
commit
a7b357fd5c
@ -551,6 +551,10 @@ void vshReadlineHistoryAdd(const char *cmd);
|
|||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
#define VSH_ALTERNATIVE_OPTIONS(NAME1, NAME2) \
|
||||||
|
VSH_ALTERNATIVE_OPTIONS_EXPR(NAME1, vshCommandOptBool(cmd, NAME1), \
|
||||||
|
NAME2, vshCommandOptBool(cmd, NAME2))
|
||||||
|
|
||||||
/* Macros to help dealing with required options. */
|
/* Macros to help dealing with required options. */
|
||||||
|
|
||||||
/* VSH_REQUIRE_OPTION_EXPR:
|
/* VSH_REQUIRE_OPTION_EXPR:
|
||||||
|
Loading…
Reference in New Issue
Block a user