Skip to contentSkip to conversation

move QemuOpts from qemu/option.h to qemu/typedefs.h

PATCH In review Gerd Hoffmann 3 participants 4 messages Jun 30, 2015 – Jul 1, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 move QemuOpts from qemu/option.h to qemu/typedefs.h

---
 include/qemu/option.h   | 2 +-
 include/qemu/typedefs.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
include/qemu/option.h +1 -1
index 57e51c9..28195ba 100644
@@ -28,6 +28,7 @@
 
 #include <stdint.h>
 #include "qemu/queue.h"
+#include "qemu/typedefs.h"
 #include "qapi/error.h"
 #include "qapi/qmp/qdict.h"
 
@@ -45,7 +46,6 @@ bool has_help_option(const char *param);
 bool is_valid_option_list(const char *param);
 
 typedef struct QemuOpt QemuOpt;
-typedef struct QemuOpts QemuOpts;
 typedef struct QemuOptsList QemuOptsList;
 
 enum QemuOptType {
include/qemu/typedefs.h +1 -0
index 6fdcbcd..690ff69 100644
@@ -66,6 +66,7 @@ typedef struct QEMUBH QEMUBH;
 typedef struct QemuConsole QemuConsole;
 typedef struct QEMUFile QEMUFile;
 typedef struct QEMUMachine QEMUMachine;
+typedef struct QemuOpts QemuOpts;
 typedef struct QEMUSGList QEMUSGList;
 typedef struct QEMUSizedBuffer QEMUSizedBuffer;
 typedef struct QEMUTimerListGroup QEMUTimerListGroup;
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 5 lines · Gerd Hoffmann
---
 include/qemu/option.h   | 2 +-
 include/qemu/typedefs.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

I don't object necessarily, but it would be nice if the commit message said what the rationale for the change was...

thanks
-- PMM

#2 lore raw
Quoted 9 lines · Peter Maydell
Quoted 5 lines · Gerd Hoffmann
---
 include/qemu/option.h   | 2 +-
 include/qemu/typedefs.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

I don't object necessarily, but it would be nice if the commit message said what the rationale for the change was...

Build failure, with not-yet submitted patches,
due to QemuOpts being undeclared.

cheers,
Gerd

#3 lore raw
Quoted 8 lines · Gerd Hoffmann
Quoted 7 lines · Peter Maydell
Quoted 5 lines · Gerd Hoffmann
---
 include/qemu/option.h   | 2 +-
 include/qemu/typedefs.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
Quoted 5 lines
Quoted 2 lines

I don't object necessarily, but it would be nice if the commit message said what the rationale for the change was...

Build failure, with not-yet submitted patches,
due to QemuOpts being undeclared.

Recommend to post it right before a patch that breaks without it, because that makes explaining why easier.