[libvirt] [PATCH 4/5] introduce QEMU_OPTIONS_GENERATE_HELPMSG

Amos Kong akong at redhat.com
Tue Jan 28 03:53:49 UTC 2014


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 at 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




More information about the libvir-list mailing list