This patch introduced a new maroc, it will be used to dump the help
messages of all the options.
Signed-off-by: Amos Kong <akong(a)redhat.com>
---
qemu-options-wrapper.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/qemu-options-wrapper.h b/qemu-options-wrapper.h
index c36a9ee..bb0ac87 100644
--- a/qemu-options-wrapper.h
+++ b/qemu-options-wrapper.h
@@ -34,6 +34,14 @@
#define DEFHEADING(text)
#define ARCHHEADING(text, arch_mask)
+#elif defined(QEMU_OPTIONS_GENERATE_HELPMSG)
+
+#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
+ stringify(opt_help),
+
+#define DEFHEADING(text)
+#define ARCHHEADING(text, arch_mask)
+
#elif defined(QEMU_OPTIONS_GENERATE_OPTIONS)
#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
@@ -56,4 +64,5 @@
#undef QEMU_OPTIONS_GENERATE_HELP
#undef QEMU_OPTIONS_GENERATE_NAME
#undef QEMU_OPTIONS_GENERATE_HASPARAM
+#undef QEMU_OPTIONS_GENERATE_HELPMSG
#undef QEMU_OPTIONS_GENERATE_OPTIONS
--
1.8.4.2