remove qemu-options* from root directory
These headers are also included from softmmu/vl.c, so they should be in include/. Remove qemu-options-wrapper.h, since elsewhere we include "template" headers directly and #define the parameters in the including file; move qemu-options.h to include/. Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
75eebe0b1f
commit
fd5fc4b12d
@ -29,8 +29,13 @@
|
|||||||
#define QEMU_OPTIONS_H
|
#define QEMU_OPTIONS_H
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
#define QEMU_OPTIONS_GENERATE_ENUM
|
|
||||||
#include "qemu-options-wrapper.h"
|
#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
|
||||||
|
opt_enum,
|
||||||
|
#define DEFHEADING(text)
|
||||||
|
#define ARCHHEADING(text, arch_mask)
|
||||||
|
|
||||||
|
#include "qemu-options.def"
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -32,7 +32,7 @@
|
|||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
/* Needed early for CONFIG_BSD etc. */
|
/* Needed early for CONFIG_BSD etc. */
|
||||||
#include "net/slirp.h"
|
#include "net/slirp.h"
|
||||||
#include "qemu-options.h"
|
#include "qemu/qemu-options.h"
|
||||||
#include "qemu/error-report.h"
|
#include "qemu/error-report.h"
|
||||||
#include "qemu/log.h"
|
#include "qemu/log.h"
|
||||||
#include "sysemu/runstate.h"
|
#include "sysemu/runstate.h"
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <mmsystem.h>
|
#include <mmsystem.h>
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "qemu-options.h"
|
|
||||||
#include "sysemu/runstate.h"
|
#include "sysemu/runstate.h"
|
||||||
|
|
||||||
static BOOL WINAPI qemu_ctrl_handler(DWORD type)
|
static BOOL WINAPI qemu_ctrl_handler(DWORD type)
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
|
|
||||||
#if defined(QEMU_OPTIONS_GENERATE_ENUM)
|
|
||||||
|
|
||||||
#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
|
|
||||||
opt_enum,
|
|
||||||
#define DEFHEADING(text)
|
|
||||||
#define ARCHHEADING(text, arch_mask)
|
|
||||||
|
|
||||||
#elif defined(QEMU_OPTIONS_GENERATE_HELP)
|
|
||||||
|
|
||||||
#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
|
|
||||||
if ((arch_mask) & arch_type) \
|
|
||||||
fputs(opt_help, stdout);
|
|
||||||
|
|
||||||
#define ARCHHEADING(text, arch_mask) \
|
|
||||||
if ((arch_mask) & arch_type) \
|
|
||||||
puts(stringify(text));
|
|
||||||
|
|
||||||
#define DEFHEADING(text) ARCHHEADING(text, QEMU_ARCH_ALL)
|
|
||||||
|
|
||||||
#elif defined(QEMU_OPTIONS_GENERATE_OPTIONS)
|
|
||||||
|
|
||||||
#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
|
|
||||||
{ option, opt_arg, opt_enum, arch_mask },
|
|
||||||
#define DEFHEADING(text)
|
|
||||||
#define ARCHHEADING(text, arch_mask)
|
|
||||||
|
|
||||||
#else
|
|
||||||
#error "qemu-options-wrapper.h included with no option defined"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "qemu-options.def"
|
|
||||||
|
|
||||||
#undef DEF
|
|
||||||
#undef DEFHEADING
|
|
||||||
#undef ARCHHEADING
|
|
||||||
|
|
||||||
#undef QEMU_OPTIONS_GENERATE_ENUM
|
|
||||||
#undef QEMU_OPTIONS_GENERATE_HELP
|
|
||||||
#undef QEMU_OPTIONS_GENERATE_OPTIONS
|
|
@ -5276,3 +5276,7 @@ ERST
|
|||||||
|
|
||||||
|
|
||||||
HXCOMM This is the last statement. Insert new options before this line!
|
HXCOMM This is the last statement. Insert new options before this line!
|
||||||
|
|
||||||
|
#undef DEF
|
||||||
|
#undef DEFHEADING
|
||||||
|
#undef ARCHHEADING
|
||||||
|
24
softmmu/vl.c
24
softmmu/vl.c
@ -88,7 +88,7 @@
|
|||||||
#include "qapi/qobject-input-visitor.h"
|
#include "qapi/qobject-input-visitor.h"
|
||||||
#include "qemu/option.h"
|
#include "qemu/option.h"
|
||||||
#include "qemu/config-file.h"
|
#include "qemu/config-file.h"
|
||||||
#include "qemu-options.h"
|
#include "qemu/qemu-options.h"
|
||||||
#include "qemu/main-loop.h"
|
#include "qemu/main-loop.h"
|
||||||
#ifdef CONFIG_VIRTFS
|
#ifdef CONFIG_VIRTFS
|
||||||
#include "fsdev/qemu-fsdev.h"
|
#include "fsdev/qemu-fsdev.h"
|
||||||
@ -854,8 +854,17 @@ static void help(int exitcode)
|
|||||||
"'disk_image' is a raw hard disk image for IDE hard disk 0\n\n",
|
"'disk_image' is a raw hard disk image for IDE hard disk 0\n\n",
|
||||||
error_get_progname());
|
error_get_progname());
|
||||||
|
|
||||||
#define QEMU_OPTIONS_GENERATE_HELP
|
#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
|
||||||
#include "qemu-options-wrapper.h"
|
if ((arch_mask) & arch_type) \
|
||||||
|
fputs(opt_help, stdout);
|
||||||
|
|
||||||
|
#define ARCHHEADING(text, arch_mask) \
|
||||||
|
if ((arch_mask) & arch_type) \
|
||||||
|
puts(stringify(text));
|
||||||
|
|
||||||
|
#define DEFHEADING(text) ARCHHEADING(text, QEMU_ARCH_ALL)
|
||||||
|
|
||||||
|
#include "qemu-options.def"
|
||||||
|
|
||||||
printf("\nDuring emulation, the following keys are useful:\n"
|
printf("\nDuring emulation, the following keys are useful:\n"
|
||||||
"ctrl-alt-f toggle full screen\n"
|
"ctrl-alt-f toggle full screen\n"
|
||||||
@ -880,8 +889,13 @@ typedef struct QEMUOption {
|
|||||||
|
|
||||||
static const QEMUOption qemu_options[] = {
|
static const QEMUOption qemu_options[] = {
|
||||||
{ "h", 0, QEMU_OPTION_h, QEMU_ARCH_ALL },
|
{ "h", 0, QEMU_OPTION_h, QEMU_ARCH_ALL },
|
||||||
#define QEMU_OPTIONS_GENERATE_OPTIONS
|
|
||||||
#include "qemu-options-wrapper.h"
|
#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
|
||||||
|
{ option, opt_arg, opt_enum, arch_mask },
|
||||||
|
#define DEFHEADING(text)
|
||||||
|
#define ARCHHEADING(text, arch_mask)
|
||||||
|
|
||||||
|
#include "qemu-options.def"
|
||||||
{ NULL },
|
{ NULL },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user