Parcourir la source

qapi: move include files to include/qobject/

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Paolo Bonzini il y a 12 ans
Parent
commit
7b1b5d1913
100 fichiers modifiés avec 210 ajouts et 210 suppressions
  1. 1 1
      backends/rng-egd.c
  2. 1 1
      backends/rng-random.c
  3. 1 1
      backends/rng.c
  4. 1 1
      balloon.c
  5. 1 1
      block.c
  6. 1 1
      block.h
  7. 1 1
      block/qcow2.c
  8. 1 1
      block/qed.c
  9. 1 1
      block_int.h
  10. 1 1
      blockdev-nbd.c
  11. 2 2
      blockdev.c
  12. 1 1
      blockdev.h
  13. 1 1
      blockjob.c
  14. 1 1
      dump-stub.c
  15. 1 1
      dump.c
  16. 4 4
      error.c
  17. 1 1
      hmp.h
  18. 1 1
      hw/ivshmem.c
  19. 1 1
      hw/mc146818rtc.c
  20. 1 1
      hw/pci/pci-hotplug.c
  21. 1 1
      hw/pci/pcie_aer.c
  22. 1 1
      hw/qdev-addr.c
  23. 1 1
      hw/qdev-core.h
  24. 2 2
      hw/qdev-properties.c
  25. 2 2
      hw/qdev.c
  26. 1 1
      hw/vga_int.h
  27. 1 1
      hw/watchdog.c
  28. 1 1
      include/net/net.h
  29. 1 1
      include/net/slirp.h
  30. 1 1
      include/qapi/dealloc-visitor.h
  31. 0 0
      include/qapi/error.h
  32. 1 1
      include/qapi/opts-visitor.h
  33. 2 2
      include/qapi/qmp-input-visitor.h
  34. 2 2
      include/qapi/qmp-output-visitor.h
  35. 3 3
      include/qapi/qmp/dispatch.h
  36. 2 2
      include/qapi/qmp/json-lexer.h
  37. 2 2
      include/qapi/qmp/json-parser.h
  38. 2 2
      include/qapi/qmp/json-streamer.h
  39. 1 1
      include/qapi/qmp/qbool.h
  40. 2 2
      include/qapi/qmp/qdict.h
  41. 3 3
      include/qapi/qmp/qerror.h
  42. 1 1
      include/qapi/qmp/qfloat.h
  43. 1 1
      include/qapi/qmp/qint.h
  44. 2 2
      include/qapi/qmp/qjson.h
  45. 1 1
      include/qapi/qmp/qlist.h
  46. 0 0
      include/qapi/qmp/qobject.h
  47. 1 1
      include/qapi/qmp/qstring.h
  48. 8 8
      include/qapi/qmp/types.h
  49. 1 1
      include/qapi/string-input-visitor.h
  50. 1 1
      include/qapi/string-output-visitor.h
  51. 2 2
      include/qapi/visitor-impl.h
  52. 1 1
      include/qapi/visitor.h
  53. 1 1
      include/qemu/rng.h
  54. 2 2
      include/ui/console.h
  55. 5 5
      json-lexer.c
  56. 9 9
      json-parser.c
  57. 5 5
      json-streamer.c
  58. 2 2
      migration.h
  59. 8 8
      monitor.c
  60. 2 2
      monitor.h
  61. 1 1
      net/net.c
  62. 1 1
      pixman
  63. 3 3
      qapi/opts-visitor.c
  64. 3 3
      qapi/qapi-dealloc-visitor.c
  65. 3 3
      qapi/qapi-visit-core.c
  66. 5 5
      qapi/qmp-dispatch.c
  67. 4 4
      qapi/qmp-input-visitor.c
  68. 4 4
      qapi/qmp-output-visitor.c
  69. 1 1
      qapi/qmp-registry.c
  70. 3 3
      qapi/string-input-visitor.c
  71. 3 3
      qapi/string-output-visitor.c
  72. 2 2
      qbool.c
  73. 6 6
      qdict.c
  74. 2 2
      qemu-char.h
  75. 1 1
      qemu-config.c
  76. 1 1
      qemu-config.h
  77. 1 1
      qemu-img.c
  78. 3 3
      qemu-option.c
  79. 2 2
      qemu-option.h
  80. 2 2
      qemu_socket.h
  81. 2 2
      qerror.c
  82. 2 2
      qfloat.c
  83. 1 1
      qga/commands-posix.c
  84. 1 1
      qga/commands-win32.c
  85. 1 1
      qga/commands.c
  86. 1 1
      qga/guest-agent-core.h
  87. 6 6
      qga/main.c
  88. 2 2
      qint.c
  89. 9 9
      qjson.c
  90. 2 2
      qlist.c
  91. 6 6
      qom/object.c
  92. 1 1
      qom/qom-qobject.c
  93. 2 2
      qstring.c
  94. 7 7
      scripts/qapi-commands.py
  95. 1 1
      scripts/qapi-types.py
  96. 1 1
      scripts/qapi-visit.py
  97. 1 1
      stubs/arch-query-cpu-def.c
  98. 1 1
      target-i386/cpu-qom.h
  99. 2 2
      target-i386/cpu.c
  100. 1 1
      target-openrisc/cpu.h

+ 1 - 1
backends/rng-egd.c

@@ -12,7 +12,7 @@
 
 
 #include "qemu/rng.h"
 #include "qemu/rng.h"
 #include "qemu-char.h"
 #include "qemu-char.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "hw/qdev.h" /* just for DEFINE_PROP_CHR */
 #include "hw/qdev.h" /* just for DEFINE_PROP_CHR */
 
 
 #define TYPE_RNG_EGD "rng-egd"
 #define TYPE_RNG_EGD "rng-egd"

+ 1 - 1
backends/rng-random.c

@@ -12,7 +12,7 @@
 
 
 #include "qemu/rng-random.h"
 #include "qemu/rng-random.h"
 #include "qemu/rng.h"
 #include "qemu/rng.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "main-loop.h"
 #include "main-loop.h"
 
 
 struct RndRandom
 struct RndRandom

+ 1 - 1
backends/rng.c

@@ -11,7 +11,7 @@
  */
  */
 
 
 #include "qemu/rng.h"
 #include "qemu/rng.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
 
 void rng_backend_request_entropy(RngBackend *s, size_t size,
 void rng_backend_request_entropy(RngBackend *s, size_t size,
                                  EntropyReceiveFunc *receive_entropy,
                                  EntropyReceiveFunc *receive_entropy,

+ 1 - 1
balloon.c

@@ -30,7 +30,7 @@
 #include "balloon.h"
 #include "balloon.h"
 #include "trace.h"
 #include "trace.h"
 #include "qmp-commands.h"
 #include "qmp-commands.h"
-#include "qjson.h"
+#include "qapi/qmp/qjson.h"
 
 
 static QEMUBalloonEvent *balloon_event_fn;
 static QEMUBalloonEvent *balloon_event_fn;
 static QEMUBalloonStatus *balloon_stat_fn;
 static QEMUBalloonStatus *balloon_stat_fn;

+ 1 - 1
block.c

@@ -28,7 +28,7 @@
 #include "block_int.h"
 #include "block_int.h"
 #include "blockjob.h"
 #include "blockjob.h"
 #include "module.h"
 #include "module.h"
-#include "qjson.h"
+#include "qapi/qmp/qjson.h"
 #include "sysemu.h"
 #include "sysemu.h"
 #include "notify.h"
 #include "notify.h"
 #include "qemu-coroutine.h"
 #include "qemu-coroutine.h"

+ 1 - 1
block.h

@@ -5,7 +5,7 @@
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "qemu-option.h"
 #include "qemu-option.h"
 #include "qemu-coroutine.h"
 #include "qemu-coroutine.h"
-#include "qobject.h"
+#include "qapi/qmp/qobject.h"
 #include "qapi-types.h"
 #include "qapi-types.h"
 
 
 /* block.c */
 /* block.c */

+ 1 - 1
block/qcow2.c

@@ -28,7 +28,7 @@
 #include "aes.h"
 #include "aes.h"
 #include "block/qcow2.h"
 #include "block/qcow2.h"
 #include "qemu-error.h"
 #include "qemu-error.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "trace.h"
 #include "trace.h"
 
 
 /*
 /*

+ 1 - 1
block/qed.c

@@ -15,7 +15,7 @@
 #include "qemu-timer.h"
 #include "qemu-timer.h"
 #include "trace.h"
 #include "trace.h"
 #include "qed.h"
 #include "qed.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "migration.h"
 #include "migration.h"
 
 
 static void qed_aio_cancel(BlockDriverAIOCB *blockacb)
 static void qed_aio_cancel(BlockDriverAIOCB *blockacb)

+ 1 - 1
block_int.h

@@ -30,7 +30,7 @@
 #include "qemu-coroutine.h"
 #include "qemu-coroutine.h"
 #include "qemu-timer.h"
 #include "qemu-timer.h"
 #include "qapi-types.h"
 #include "qapi-types.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "monitor.h"
 #include "monitor.h"
 
 
 #define BLOCK_FLAG_ENCRYPT          1
 #define BLOCK_FLAG_ENCRYPT          1

+ 1 - 1
blockdev-nbd.c

@@ -12,7 +12,7 @@
 #include "blockdev.h"
 #include "blockdev.h"
 #include "hw/block-common.h"
 #include "hw/block-common.h"
 #include "monitor.h"
 #include "monitor.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "sysemu.h"
 #include "sysemu.h"
 #include "qmp-commands.h"
 #include "qmp-commands.h"
 #include "trace.h"
 #include "trace.h"

+ 2 - 2
blockdev.c

@@ -11,10 +11,10 @@
 #include "hw/block-common.h"
 #include "hw/block-common.h"
 #include "blockjob.h"
 #include "blockjob.h"
 #include "monitor.h"
 #include "monitor.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "qemu-option.h"
 #include "qemu-option.h"
 #include "qemu-config.h"
 #include "qemu-config.h"
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 #include "sysemu.h"
 #include "sysemu.h"
 #include "block_int.h"
 #include "block_int.h"
 #include "qmp-commands.h"
 #include "qmp-commands.h"

+ 1 - 1
blockdev.h

@@ -11,7 +11,7 @@
 #define BLOCKDEV_H
 #define BLOCKDEV_H
 
 
 #include "block.h"
 #include "block.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 
 
 void blockdev_mark_auto_del(BlockDriverState *bs);
 void blockdev_mark_auto_del(BlockDriverState *bs);

+ 1 - 1
blockjob.c

@@ -30,7 +30,7 @@
 #include "block.h"
 #include "block.h"
 #include "blockjob.h"
 #include "blockjob.h"
 #include "block_int.h"
 #include "block_int.h"
-#include "qjson.h"
+#include "qapi/qmp/qjson.h"
 #include "qemu-coroutine.h"
 #include "qemu-coroutine.h"
 #include "qmp-commands.h"
 #include "qmp-commands.h"
 #include "qemu-timer.h"
 #include "qemu-timer.h"

+ 1 - 1
dump-stub.c

@@ -13,7 +13,7 @@
 
 
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "dump.h"
 #include "dump.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "qmp-commands.h"
 #include "qmp-commands.h"
 
 
 /* we need this function in hmp.c */
 /* we need this function in hmp.c */

+ 1 - 1
dump.c

@@ -21,7 +21,7 @@
 #include "dump.h"
 #include "dump.h"
 #include "sysemu.h"
 #include "sysemu.h"
 #include "memory_mapping.h"
 #include "memory_mapping.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qmp-commands.h"
 #include "qmp-commands.h"
 #include "gdbstub.h"
 #include "gdbstub.h"
 
 

+ 4 - 4
error.c

@@ -11,11 +11,11 @@
  */
  */
 
 
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "error.h"
-#include "qjson.h"
-#include "qdict.h"
+#include "qapi/error.h"
+#include "qapi/qmp/qjson.h"
+#include "qapi/qmp/qdict.h"
 #include "qapi-types.h"
 #include "qapi-types.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
 
 struct Error
 struct Error
 {
 {

+ 1 - 1
hmp.h

@@ -16,7 +16,7 @@
 
 
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "qapi-types.h"
 #include "qapi-types.h"
-#include "qdict.h"
+#include "qapi/qmp/qdict.h"
 
 
 void hmp_info_name(Monitor *mon);
 void hmp_info_name(Monitor *mon);
 void hmp_info_version(Monitor *mon);
 void hmp_info_version(Monitor *mon);

+ 1 - 1
hw/ivshmem.c

@@ -22,7 +22,7 @@
 #include "pci/msix.h"
 #include "pci/msix.h"
 #include "kvm.h"
 #include "kvm.h"
 #include "migration.h"
 #include "migration.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "event_notifier.h"
 #include "event_notifier.h"
 #include "qemu-char.h"
 #include "qemu-char.h"
 
 

+ 1 - 1
hw/mc146818rtc.c

@@ -25,7 +25,7 @@
 #include "qemu-timer.h"
 #include "qemu-timer.h"
 #include "sysemu.h"
 #include "sysemu.h"
 #include "mc146818rtc.h"
 #include "mc146818rtc.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 
 
 #ifdef TARGET_I386
 #ifdef TARGET_I386
 #include "apic.h"
 #include "apic.h"

+ 1 - 1
hw/pci/pci-hotplug.c

@@ -32,7 +32,7 @@
 #include "hw/virtio-blk.h"
 #include "hw/virtio-blk.h"
 #include "qemu-config.h"
 #include "qemu-config.h"
 #include "blockdev.h"
 #include "blockdev.h"
-#include "error.h"
+#include "qapi/error.h"
 
 
 #if defined(TARGET_I386)
 #if defined(TARGET_I386)
 static PCIDevice *qemu_pci_hot_add_nic(Monitor *mon,
 static PCIDevice *qemu_pci_hot_add_nic(Monitor *mon,

+ 1 - 1
hw/pci/pcie_aer.c

@@ -19,7 +19,7 @@
  */
  */
 
 
 #include "sysemu.h"
 #include "sysemu.h"
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 #include "monitor.h"
 #include "monitor.h"
 #include "hw/pci/pci_bridge.h"
 #include "hw/pci/pci_bridge.h"
 #include "hw/pci/pcie.h"
 #include "hw/pci/pcie.h"

+ 1 - 1
hw/qdev-addr.c

@@ -1,7 +1,7 @@
 #include "qdev.h"
 #include "qdev.h"
 #include "qdev-addr.h"
 #include "qdev-addr.h"
 #include "hwaddr.h"
 #include "hwaddr.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 
 
 /* --- target physical address --- */
 /* --- target physical address --- */
 
 

+ 1 - 1
hw/qdev-core.h

@@ -6,7 +6,7 @@
 #include "qemu-types.h"
 #include "qemu-types.h"
 #include "qemu/object.h"
 #include "qemu/object.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
-#include "error.h"
+#include "qapi/error.h"
 
 
 enum DevState {
 enum DevState {
     DEV_STATE_CREATED = 1,
     DEV_STATE_CREATED = 1,

+ 2 - 2
hw/qdev-properties.c

@@ -1,10 +1,10 @@
 #include "net/net.h"
 #include "net/net.h"
 #include "qdev.h"
 #include "qdev.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "blockdev.h"
 #include "blockdev.h"
 #include "hw/block-common.h"
 #include "hw/block-common.h"
 #include "net/hub.h"
 #include "net/hub.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 #include "qemu-char.h"
 #include "qemu-char.h"
 
 
 void *qdev_get_prop_ptr(DeviceState *dev, Property *prop)
 void *qdev_get_prop_ptr(DeviceState *dev, Property *prop)

+ 2 - 2
hw/qdev.c

@@ -28,8 +28,8 @@
 #include "net/net.h"
 #include "net/net.h"
 #include "qdev.h"
 #include "qdev.h"
 #include "sysemu.h"
 #include "sysemu.h"
-#include "error.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/error.h"
+#include "qapi/visitor.h"
 
 
 int qdev_hotplug = 0;
 int qdev_hotplug = 0;
 static bool qdev_hot_added = false;
 static bool qdev_hot_added = false;

+ 1 - 1
hw/vga_int.h

@@ -25,7 +25,7 @@
 #define HW_VGA_INT_H 1
 #define HW_VGA_INT_H 1
 
 
 #include <hw/hw.h>
 #include <hw/hw.h>
-#include "error.h"
+#include "qapi/error.h"
 #include "memory.h"
 #include "memory.h"
 
 
 #define ST01_V_RETRACE      0x08
 #define ST01_V_RETRACE      0x08

+ 1 - 1
hw/watchdog.c

@@ -23,7 +23,7 @@
 #include "qemu-option.h"
 #include "qemu-option.h"
 #include "qemu-config.h"
 #include "qemu-config.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 #include "monitor.h"
 #include "monitor.h"
 #include "sysemu.h"
 #include "sysemu.h"
 #include "hw/watchdog.h"
 #include "hw/watchdog.h"

+ 1 - 1
include/net/net.h

@@ -3,7 +3,7 @@
 
 
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "qdict.h"
+#include "qapi/qmp/qdict.h"
 #include "qemu-option.h"
 #include "qemu-option.h"
 #include "net/queue.h"
 #include "net/queue.h"
 #include "vmstate.h"
 #include "vmstate.h"

+ 1 - 1
include/net/slirp.h

@@ -25,7 +25,7 @@
 #define QEMU_NET_SLIRP_H
 #define QEMU_NET_SLIRP_H
 
 
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "qdict.h"
+#include "qapi/qmp/qdict.h"
 #include "qemu-option.h"
 #include "qemu-option.h"
 #include "qapi-types.h"
 #include "qapi-types.h"
 
 

+ 1 - 1
qapi/qapi-dealloc-visitor.h → include/qapi/dealloc-visitor.h

@@ -14,7 +14,7 @@
 #ifndef QAPI_DEALLOC_VISITOR_H
 #ifndef QAPI_DEALLOC_VISITOR_H
 #define QAPI_DEALLOC_VISITOR_H
 #define QAPI_DEALLOC_VISITOR_H
 
 
-#include "qapi-visit-core.h"
+#include "qapi/visitor.h"
 
 
 typedef struct QapiDeallocVisitor QapiDeallocVisitor;
 typedef struct QapiDeallocVisitor QapiDeallocVisitor;
 
 

+ 0 - 0
error.h → include/qapi/error.h


+ 1 - 1
qapi/opts-visitor.h → include/qapi/opts-visitor.h

@@ -13,7 +13,7 @@
 #ifndef OPTS_VISITOR_H
 #ifndef OPTS_VISITOR_H
 #define OPTS_VISITOR_H
 #define OPTS_VISITOR_H
 
 
-#include "qapi-visit-core.h"
+#include "qapi/visitor.h"
 #include "qemu-option.h"
 #include "qemu-option.h"
 
 
 typedef struct OptsVisitor OptsVisitor;
 typedef struct OptsVisitor OptsVisitor;

+ 2 - 2
qapi/qmp-input-visitor.h → include/qapi/qmp-input-visitor.h

@@ -14,8 +14,8 @@
 #ifndef QMP_INPUT_VISITOR_H
 #ifndef QMP_INPUT_VISITOR_H
 #define QMP_INPUT_VISITOR_H
 #define QMP_INPUT_VISITOR_H
 
 
-#include "qapi-visit-core.h"
-#include "qobject.h"
+#include "qapi/visitor.h"
+#include "qapi/qmp/qobject.h"
 
 
 typedef struct QmpInputVisitor QmpInputVisitor;
 typedef struct QmpInputVisitor QmpInputVisitor;
 
 

+ 2 - 2
qapi/qmp-output-visitor.h → include/qapi/qmp-output-visitor.h

@@ -14,8 +14,8 @@
 #ifndef QMP_OUTPUT_VISITOR_H
 #ifndef QMP_OUTPUT_VISITOR_H
 #define QMP_OUTPUT_VISITOR_H
 #define QMP_OUTPUT_VISITOR_H
 
 
-#include "qapi-visit-core.h"
-#include "qobject.h"
+#include "qapi/visitor.h"
+#include "qapi/qmp/qobject.h"
 
 
 typedef struct QmpOutputVisitor QmpOutputVisitor;
 typedef struct QmpOutputVisitor QmpOutputVisitor;
 
 

+ 3 - 3
qapi/qmp-core.h → include/qapi/qmp/dispatch.h

@@ -14,9 +14,9 @@
 #ifndef QMP_CORE_H
 #ifndef QMP_CORE_H
 #define QMP_CORE_H
 #define QMP_CORE_H
 
 
-#include "qobject.h"
-#include "qdict.h"
-#include "error.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/error.h"
 
 
 typedef void (QmpCommandFunc)(QDict *, QObject **, Error **);
 typedef void (QmpCommandFunc)(QDict *, QObject **, Error **);
 
 

+ 2 - 2
json-lexer.h → include/qapi/qmp/json-lexer.h

@@ -14,8 +14,8 @@
 #ifndef QEMU_JSON_LEXER_H
 #ifndef QEMU_JSON_LEXER_H
 #define QEMU_JSON_LEXER_H
 #define QEMU_JSON_LEXER_H
 
 
-#include "qstring.h"
-#include "qlist.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qlist.h"
 
 
 typedef enum json_token_type {
 typedef enum json_token_type {
     JSON_OPERATOR = 100,
     JSON_OPERATOR = 100,

+ 2 - 2
json-parser.h → include/qapi/qmp/json-parser.h

@@ -15,8 +15,8 @@
 #define QEMU_JSON_PARSER_H
 #define QEMU_JSON_PARSER_H
 
 
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "qlist.h"
-#include "error.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/error.h"
 
 
 QObject *json_parser_parse(QList *tokens, va_list *ap);
 QObject *json_parser_parse(QList *tokens, va_list *ap);
 QObject *json_parser_parse_err(QList *tokens, va_list *ap, Error **errp);
 QObject *json_parser_parse_err(QList *tokens, va_list *ap, Error **errp);

+ 2 - 2
json-streamer.h → include/qapi/qmp/json-streamer.h

@@ -14,8 +14,8 @@
 #ifndef QEMU_JSON_STREAMER_H
 #ifndef QEMU_JSON_STREAMER_H
 #define QEMU_JSON_STREAMER_H
 #define QEMU_JSON_STREAMER_H
 
 
-#include "qlist.h"
-#include "json-lexer.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/json-lexer.h"
 
 
 typedef struct JSONMessageParser
 typedef struct JSONMessageParser
 {
 {

+ 1 - 1
qbool.h → include/qapi/qmp/qbool.h

@@ -15,7 +15,7 @@
 #define QBOOL_H
 #define QBOOL_H
 
 
 #include <stdint.h>
 #include <stdint.h>
-#include "qobject.h"
+#include "qapi/qmp/qobject.h"
 
 
 typedef struct QBool {
 typedef struct QBool {
     QObject_HEAD;
     QObject_HEAD;

+ 2 - 2
qdict.h → include/qapi/qmp/qdict.h

@@ -13,8 +13,8 @@
 #ifndef QDICT_H
 #ifndef QDICT_H
 #define QDICT_H
 #define QDICT_H
 
 
-#include "qobject.h"
-#include "qlist.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qlist.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 #include <stdint.h>
 #include <stdint.h>
 
 

+ 3 - 3
qerror.h → include/qapi/qmp/qerror.h

@@ -12,10 +12,10 @@
 #ifndef QERROR_H
 #ifndef QERROR_H
 #define QERROR_H
 #define QERROR_H
 
 
-#include "qdict.h"
-#include "qstring.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qstring.h"
 #include "qemu-error.h"
 #include "qemu-error.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qapi-types.h"
 #include "qapi-types.h"
 #include <stdarg.h>
 #include <stdarg.h>
 
 

+ 1 - 1
qfloat.h → include/qapi/qmp/qfloat.h

@@ -15,7 +15,7 @@
 #define QFLOAT_H
 #define QFLOAT_H
 
 
 #include <stdint.h>
 #include <stdint.h>
-#include "qobject.h"
+#include "qapi/qmp/qobject.h"
 
 
 typedef struct QFloat {
 typedef struct QFloat {
     QObject_HEAD;
     QObject_HEAD;

+ 1 - 1
qint.h → include/qapi/qmp/qint.h

@@ -14,7 +14,7 @@
 #define QINT_H
 #define QINT_H
 
 
 #include <stdint.h>
 #include <stdint.h>
-#include "qobject.h"
+#include "qapi/qmp/qobject.h"
 
 
 typedef struct QInt {
 typedef struct QInt {
     QObject_HEAD;
     QObject_HEAD;

+ 2 - 2
qjson.h → include/qapi/qmp/qjson.h

@@ -16,8 +16,8 @@
 
 
 #include <stdarg.h>
 #include <stdarg.h>
 #include "compiler.h"
 #include "compiler.h"
-#include "qobject.h"
-#include "qstring.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qstring.h"
 
 
 QObject *qobject_from_json(const char *string) GCC_FMT_ATTR(1, 0);
 QObject *qobject_from_json(const char *string) GCC_FMT_ATTR(1, 0);
 QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2);
 QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2);

+ 1 - 1
qlist.h → include/qapi/qmp/qlist.h

@@ -13,7 +13,7 @@
 #ifndef QLIST_H
 #ifndef QLIST_H
 #define QLIST_H
 #define QLIST_H
 
 
-#include "qobject.h"
+#include "qapi/qmp/qobject.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 
 

+ 0 - 0
qobject.h → include/qapi/qmp/qobject.h


+ 1 - 1
qstring.h → include/qapi/qmp/qstring.h

@@ -14,7 +14,7 @@
 #define QSTRING_H
 #define QSTRING_H
 
 
 #include <stdint.h>
 #include <stdint.h>
-#include "qobject.h"
+#include "qapi/qmp/qobject.h"
 
 
 typedef struct QString {
 typedef struct QString {
     QObject_HEAD;
     QObject_HEAD;

+ 8 - 8
qemu-objects.h → include/qapi/qmp/types.h

@@ -13,13 +13,13 @@
 #ifndef QEMU_OBJECTS_H
 #ifndef QEMU_OBJECTS_H
 #define QEMU_OBJECTS_H
 #define QEMU_OBJECTS_H
 
 
-#include "qobject.h"
-#include "qint.h"
-#include "qfloat.h"
-#include "qbool.h"
-#include "qstring.h"
-#include "qdict.h"
-#include "qlist.h"
-#include "qjson.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qfloat.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qjson.h"
 
 
 #endif /* QEMU_OBJECTS_H */
 #endif /* QEMU_OBJECTS_H */

+ 1 - 1
qapi/string-input-visitor.h → include/qapi/string-input-visitor.h

@@ -13,7 +13,7 @@
 #ifndef STRING_INPUT_VISITOR_H
 #ifndef STRING_INPUT_VISITOR_H
 #define STRING_INPUT_VISITOR_H
 #define STRING_INPUT_VISITOR_H
 
 
-#include "qapi-visit-core.h"
+#include "qapi/visitor.h"
 
 
 typedef struct StringInputVisitor StringInputVisitor;
 typedef struct StringInputVisitor StringInputVisitor;
 
 

+ 1 - 1
qapi/string-output-visitor.h → include/qapi/string-output-visitor.h

@@ -13,7 +13,7 @@
 #ifndef STRING_OUTPUT_VISITOR_H
 #ifndef STRING_OUTPUT_VISITOR_H
 #define STRING_OUTPUT_VISITOR_H
 #define STRING_OUTPUT_VISITOR_H
 
 
-#include "qapi-visit-core.h"
+#include "qapi/visitor.h"
 
 
 typedef struct StringOutputVisitor StringOutputVisitor;
 typedef struct StringOutputVisitor StringOutputVisitor;
 
 

+ 2 - 2
qapi/qapi-visit-impl.h → include/qapi/visitor-impl.h

@@ -12,8 +12,8 @@
 #ifndef QAPI_VISITOR_IMPL_H
 #ifndef QAPI_VISITOR_IMPL_H
 #define QAPI_VISITOR_IMPL_H
 #define QAPI_VISITOR_IMPL_H
 
 
-#include "error.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/error.h"
+#include "qapi/visitor.h"
 
 
 struct Visitor
 struct Visitor
 {
 {

+ 1 - 1
qapi/qapi-visit-core.h → include/qapi/visitor.h

@@ -13,7 +13,7 @@
 #ifndef QAPI_VISITOR_CORE_H
 #ifndef QAPI_VISITOR_CORE_H
 #define QAPI_VISITOR_CORE_H
 #define QAPI_VISITOR_CORE_H
 
 
-#include "error.h"
+#include "qapi/error.h"
 #include <stdlib.h>
 #include <stdlib.h>
 
 
 typedef struct GenericList
 typedef struct GenericList

+ 1 - 1
include/qemu/rng.h

@@ -15,7 +15,7 @@
 
 
 #include "qemu/object.h"
 #include "qemu/object.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "error.h"
+#include "qapi/error.h"
 
 
 #define TYPE_RNG_BACKEND "rng-backend"
 #define TYPE_RNG_BACKEND "rng-backend"
 #define RNG_BACKEND(obj) \
 #define RNG_BACKEND(obj) \

+ 2 - 2
include/ui/console.h

@@ -2,12 +2,12 @@
 #define CONSOLE_H
 #define CONSOLE_H
 
 
 #include "ui/qemu-pixman.h"
 #include "ui/qemu-pixman.h"
-#include "qdict.h"
+#include "qapi/qmp/qdict.h"
 #include "notify.h"
 #include "notify.h"
 #include "monitor.h"
 #include "monitor.h"
 #include "trace.h"
 #include "trace.h"
 #include "qapi-types.h"
 #include "qapi-types.h"
-#include "error.h"
+#include "qapi/error.h"
 
 
 /* keyboard/mouse support */
 /* keyboard/mouse support */
 
 

+ 5 - 5
json-lexer.c

@@ -11,12 +11,12 @@
  *
  *
  */
  */
 
 
-#include "qstring.h"
-#include "qlist.h"
-#include "qdict.h"
-#include "qint.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qint.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "json-lexer.h"
+#include "qapi/qmp/json-lexer.h"
 
 
 #define MAX_TOKEN_SIZE (64ULL << 20)
 #define MAX_TOKEN_SIZE (64ULL << 20)
 
 

+ 9 - 9
json-parser.c

@@ -14,15 +14,15 @@
 #include <stdarg.h>
 #include <stdarg.h>
 
 
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "qstring.h"
-#include "qint.h"
-#include "qdict.h"
-#include "qlist.h"
-#include "qfloat.h"
-#include "qbool.h"
-#include "json-parser.h"
-#include "json-lexer.h"
-#include "qerror.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qfloat.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/json-parser.h"
+#include "qapi/qmp/json-lexer.h"
+#include "qapi/qmp/qerror.h"
 
 
 typedef struct JSONParserContext
 typedef struct JSONParserContext
 {
 {

+ 5 - 5
json-streamer.c

@@ -11,12 +11,12 @@
  *
  *
  */
  */
 
 
-#include "qlist.h"
-#include "qint.h"
-#include "qdict.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qdict.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "json-lexer.h"
-#include "json-streamer.h"
+#include "qapi/qmp/json-lexer.h"
+#include "qapi/qmp/json-streamer.h"
 
 
 #define MAX_TOKEN_SIZE (64ULL << 20)
 #define MAX_TOKEN_SIZE (64ULL << 20)
 #define MAX_NESTING (1ULL << 10)
 #define MAX_NESTING (1ULL << 10)

+ 2 - 2
migration.h

@@ -14,10 +14,10 @@
 #ifndef QEMU_MIGRATION_H
 #ifndef QEMU_MIGRATION_H
 #define QEMU_MIGRATION_H
 #define QEMU_MIGRATION_H
 
 
-#include "qdict.h"
+#include "qapi/qmp/qdict.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "notify.h"
 #include "notify.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "vmstate.h"
 #include "vmstate.h"
 #include "qapi-types.h"
 #include "qapi-types.h"
 
 

+ 8 - 8
monitor.c

@@ -47,14 +47,14 @@
 #include "migration.h"
 #include "migration.h"
 #include "kvm.h"
 #include "kvm.h"
 #include "acl.h"
 #include "acl.h"
-#include "qint.h"
-#include "qfloat.h"
-#include "qlist.h"
-#include "qbool.h"
-#include "qstring.h"
-#include "qjson.h"
-#include "json-streamer.h"
-#include "json-parser.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qfloat.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qjson.h"
+#include "qapi/qmp/json-streamer.h"
+#include "qapi/qmp/json-parser.h"
 #include "osdep.h"
 #include "osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "trace.h"
 #include "trace.h"

+ 2 - 2
monitor.h

@@ -2,8 +2,8 @@
 #define MONITOR_H
 #define MONITOR_H
 
 
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "qerror.h"
-#include "qdict.h"
+#include "qapi/qmp/qerror.h"
+#include "qapi/qmp/qdict.h"
 #include "block.h"
 #include "block.h"
 #include "readline.h"
 #include "readline.h"
 
 

+ 1 - 1
net/net.c

@@ -38,7 +38,7 @@
 #include "iov.h"
 #include "iov.h"
 #include "qapi-visit.h"
 #include "qapi-visit.h"
 #include "qapi/opts-visitor.h"
 #include "qapi/opts-visitor.h"
-#include "qapi/qapi-dealloc-visitor.h"
+#include "qapi/dealloc-visitor.h"
 
 
 /* Net bridge is currently not supported for W32. */
 /* Net bridge is currently not supported for W32. */
 #if !defined(_WIN32)
 #if !defined(_WIN32)

+ 1 - 1
pixman

@@ -1 +1 @@
-Subproject commit a5e5179b5624c99c812e9bf6e7b907e355a811e8
+Subproject commit 97336fad32acf802003855cd8bd6477fa49a12e3

+ 3 - 3
qapi/opts-visitor.c

@@ -11,11 +11,11 @@
  */
  */
 
 
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "qerror.h"
-#include "opts-visitor.h"
+#include "qapi/qmp/qerror.h"
+#include "qapi/opts-visitor.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 #include "qemu-option-internal.h"
 #include "qemu-option-internal.h"
-#include "qapi-visit-impl.h"
+#include "qapi/visitor-impl.h"
 
 
 
 
 struct OptsVisitor
 struct OptsVisitor

+ 3 - 3
qapi/qapi-dealloc-visitor.c

@@ -11,11 +11,11 @@
  *
  *
  */
  */
 
 
-#include "qapi-dealloc-visitor.h"
+#include "qapi/dealloc-visitor.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "qemu-objects.h"
-#include "qapi-visit-impl.h"
+#include "qapi/qmp/types.h"
+#include "qapi/visitor-impl.h"
 
 
 typedef struct StackEntry
 typedef struct StackEntry
 {
 {

+ 3 - 3
qapi/qapi-visit-core.c

@@ -12,9 +12,9 @@
  */
  */
 
 
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "qerror.h"
-#include "qapi/qapi-visit-core.h"
-#include "qapi/qapi-visit-impl.h"
+#include "qapi/qmp/qerror.h"
+#include "qapi/visitor.h"
+#include "qapi/visitor-impl.h"
 
 
 void visit_start_handle(Visitor *v, void **obj, const char *kind,
 void visit_start_handle(Visitor *v, void **obj, const char *kind,
                         const char *name, Error **errp)
                         const char *name, Error **errp)

+ 5 - 5
qapi/qmp-dispatch.c

@@ -11,12 +11,12 @@
  *
  *
  */
  */
 
 
-#include "qemu-objects.h"
-#include "qapi/qmp-core.h"
-#include "json-parser.h"
+#include "qapi/qmp/types.h"
+#include "qapi/qmp/dispatch.h"
+#include "qapi/qmp/json-parser.h"
 #include "qapi-types.h"
 #include "qapi-types.h"
-#include "error.h"
-#include "qerror.h"
+#include "qapi/error.h"
+#include "qapi/qmp/qerror.h"
 
 
 static QDict *qmp_dispatch_check_obj(const QObject *request, Error **errp)
 static QDict *qmp_dispatch_check_obj(const QObject *request, Error **errp)
 {
 {

+ 4 - 4
qapi/qmp-input-visitor.c

@@ -11,12 +11,12 @@
  *
  *
  */
  */
 
 
-#include "qmp-input-visitor.h"
-#include "qapi/qapi-visit-impl.h"
+#include "qapi/qmp-input-visitor.h"
+#include "qapi/visitor-impl.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "qemu-objects.h"
-#include "qerror.h"
+#include "qapi/qmp/types.h"
+#include "qapi/qmp/qerror.h"
 
 
 #define QIV_STACK_SIZE 1024
 #define QIV_STACK_SIZE 1024
 
 

+ 4 - 4
qapi/qmp-output-visitor.c

@@ -11,12 +11,12 @@
  *
  *
  */
  */
 
 
-#include "qmp-output-visitor.h"
-#include "qapi/qapi-visit-impl.h"
+#include "qapi/qmp-output-visitor.h"
+#include "qapi/visitor-impl.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "qemu-objects.h"
-#include "qerror.h"
+#include "qapi/qmp/types.h"
+#include "qapi/qmp/qerror.h"
 
 
 typedef struct QStackEntry
 typedef struct QStackEntry
 {
 {

+ 1 - 1
qapi/qmp-registry.c

@@ -14,7 +14,7 @@
 
 
 #include <glib.h>
 #include <glib.h>
 #include <string.h>
 #include <string.h>
-#include "qapi/qmp-core.h"
+#include "qapi/qmp/dispatch.h"
 
 
 static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands =
 static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands =
     QTAILQ_HEAD_INITIALIZER(qmp_commands);
     QTAILQ_HEAD_INITIALIZER(qmp_commands);

+ 3 - 3
qapi/string-input-visitor.c

@@ -11,9 +11,9 @@
  */
  */
 
 
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "string-input-visitor.h"
-#include "qapi/qapi-visit-impl.h"
-#include "qerror.h"
+#include "qapi/string-input-visitor.h"
+#include "qapi/visitor-impl.h"
+#include "qapi/qmp/qerror.h"
 
 
 struct StringInputVisitor
 struct StringInputVisitor
 {
 {

+ 3 - 3
qapi/string-output-visitor.c

@@ -11,9 +11,9 @@
  */
  */
 
 
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "string-output-visitor.h"
-#include "qapi/qapi-visit-impl.h"
-#include "qerror.h"
+#include "qapi/string-output-visitor.h"
+#include "qapi/visitor-impl.h"
+#include "qapi/qmp/qerror.h"
 
 
 struct StringOutputVisitor
 struct StringOutputVisitor
 {
 {

+ 2 - 2
qbool.c

@@ -11,8 +11,8 @@
  *
  *
  */
  */
 
 
-#include "qbool.h"
-#include "qobject.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qobject.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 
 
 static void qbool_destroy_obj(QObject *obj);
 static void qbool_destroy_obj(QObject *obj);

+ 6 - 6
qdict.c

@@ -10,12 +10,12 @@
  * See the COPYING.LIB file in the top-level directory.
  * See the COPYING.LIB file in the top-level directory.
  */
  */
 
 
-#include "qint.h"
-#include "qfloat.h"
-#include "qdict.h"
-#include "qbool.h"
-#include "qstring.h"
-#include "qobject.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qfloat.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qobject.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 
 

+ 2 - 2
qemu-char.h

@@ -6,8 +6,8 @@
 #include "qemu-option.h"
 #include "qemu-option.h"
 #include "qemu-config.h"
 #include "qemu-config.h"
 #include "qemu-aio.h"
 #include "qemu-aio.h"
-#include "qobject.h"
-#include "qstring.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qstring.h"
 #include "main-loop.h"
 #include "main-loop.h"
 
 
 /* character device */
 /* character device */

+ 1 - 1
qemu-config.c

@@ -3,7 +3,7 @@
 #include "qemu-option.h"
 #include "qemu-option.h"
 #include "qemu-config.h"
 #include "qemu-config.h"
 #include "hw/qdev.h"
 #include "hw/qdev.h"
-#include "error.h"
+#include "qapi/error.h"
 
 
 static QemuOptsList qemu_drive_opts = {
 static QemuOptsList qemu_drive_opts = {
     .name = "drive",
     .name = "drive",

+ 1 - 1
qemu-config.h

@@ -3,7 +3,7 @@
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include "qemu-option.h"
 #include "qemu-option.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qemu-option.h"
 #include "qemu-option.h"
 
 
 extern QemuOptsList qemu_fsdev_opts;
 extern QemuOptsList qemu_fsdev_opts;

+ 1 - 1
qemu-img.c

@@ -23,7 +23,7 @@
  */
  */
 #include "qapi-visit.h"
 #include "qapi-visit.h"
 #include "qapi/qmp-output-visitor.h"
 #include "qapi/qmp-output-visitor.h"
-#include "qjson.h"
+#include "qapi/qmp/qjson.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "qemu-option.h"
 #include "qemu-option.h"
 #include "qemu-error.h"
 #include "qemu-error.h"

+ 3 - 3
qemu-option.c

@@ -28,9 +28,9 @@
 
 
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "qemu-error.h"
 #include "qemu-error.h"
-#include "qemu-objects.h"
-#include "error.h"
-#include "qerror.h"
+#include "qapi/qmp/types.h"
+#include "qapi/error.h"
+#include "qapi/qmp/qerror.h"
 #include "qemu-option-internal.h"
 #include "qemu-option-internal.h"
 
 
 /*
 /*

+ 2 - 2
qemu-option.h

@@ -28,8 +28,8 @@
 
 
 #include <stdint.h>
 #include <stdint.h>
 #include "qemu-queue.h"
 #include "qemu-queue.h"
-#include "error.h"
-#include "qdict.h"
+#include "qapi/error.h"
+#include "qapi/qmp/qdict.h"
 
 
 enum QEMUOptionParType {
 enum QEMUOptionParType {
     OPT_FLAG,
     OPT_FLAG,

+ 2 - 2
qemu_socket.h

@@ -27,8 +27,8 @@ int inet_aton(const char *cp, struct in_addr *ia);
 #endif /* !_WIN32 */
 #endif /* !_WIN32 */
 
 
 #include "qemu-option.h"
 #include "qemu-option.h"
-#include "error.h"
-#include "qerror.h"
+#include "qapi/error.h"
+#include "qapi/qmp/qerror.h"
 
 
 /* misc helpers */
 /* misc helpers */
 int qemu_socket(int domain, int type, int protocol);
 int qemu_socket(int domain, int type, int protocol);

+ 2 - 2
qerror.c

@@ -11,8 +11,8 @@
  */
  */
 
 
 #include "monitor.h"
 #include "monitor.h"
-#include "qjson.h"
-#include "qerror.h"
+#include "qapi/qmp/qjson.h"
+#include "qapi/qmp/qerror.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 
 
 static void qerror_destroy_obj(QObject *obj);
 static void qerror_destroy_obj(QObject *obj);

+ 2 - 2
qfloat.c

@@ -11,8 +11,8 @@
  *
  *
  */
  */
 
 
-#include "qfloat.h"
-#include "qobject.h"
+#include "qapi/qmp/qfloat.h"
+#include "qapi/qmp/qobject.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 
 
 static void qfloat_destroy_obj(QObject *obj);
 static void qfloat_destroy_obj(QObject *obj);

+ 1 - 1
qga/commands-posix.c

@@ -17,7 +17,7 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "qga/guest-agent-core.h"
 #include "qga/guest-agent-core.h"
 #include "qga-qmp-commands.h"
 #include "qga-qmp-commands.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 #include "host-utils.h"
 #include "host-utils.h"
 
 

+ 1 - 1
qga/commands-win32.c

@@ -16,7 +16,7 @@
 #include <powrprof.h>
 #include <powrprof.h>
 #include "qga/guest-agent-core.h"
 #include "qga/guest-agent-core.h"
 #include "qga-qmp-commands.h"
 #include "qga-qmp-commands.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
 
 #ifndef SHTDN_REASON_FLAG_PLANNED
 #ifndef SHTDN_REASON_FLAG_PLANNED
 #define SHTDN_REASON_FLAG_PLANNED 0x80000000
 #define SHTDN_REASON_FLAG_PLANNED 0x80000000

+ 1 - 1
qga/commands.c

@@ -13,7 +13,7 @@
 #include <glib.h>
 #include <glib.h>
 #include "qga/guest-agent-core.h"
 #include "qga/guest-agent-core.h"
 #include "qga-qmp-commands.h"
 #include "qga-qmp-commands.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
 
 /* Note: in some situations, like with the fsfreeze, logging may be
 /* Note: in some situations, like with the fsfreeze, logging may be
  * temporarilly disabled. if it is necessary that a command be able
  * temporarilly disabled. if it is necessary that a command be able

+ 1 - 1
qga/guest-agent-core.h

@@ -10,7 +10,7 @@
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
  * See the COPYING file in the top-level directory.
  */
  */
-#include "qapi/qmp-core.h"
+#include "qapi/qmp/dispatch.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 
 
 #define QGA_READ_COUNT_DEFAULT 4096
 #define QGA_READ_COUNT_DEFAULT 4096

+ 6 - 6
qga/main.c

@@ -20,15 +20,15 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include <sys/stat.h>
 #include <sys/stat.h>
 #endif
 #endif
-#include "json-streamer.h"
-#include "json-parser.h"
-#include "qint.h"
-#include "qjson.h"
+#include "qapi/qmp/json-streamer.h"
+#include "qapi/qmp/json-parser.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qjson.h"
 #include "qga/guest-agent-core.h"
 #include "qga/guest-agent-core.h"
 #include "module.h"
 #include "module.h"
 #include "signal.h"
 #include "signal.h"
-#include "qerror.h"
-#include "qapi/qmp-core.h"
+#include "qapi/qmp/qerror.h"
+#include "qapi/qmp/dispatch.h"
 #include "qga/channel.h"
 #include "qga/channel.h"
 #ifdef _WIN32
 #ifdef _WIN32
 #include "qga/service-win32.h"
 #include "qga/service-win32.h"

+ 2 - 2
qint.c

@@ -10,8 +10,8 @@
  * See the COPYING.LIB file in the top-level directory.
  * See the COPYING.LIB file in the top-level directory.
  */
  */
 
 
-#include "qint.h"
-#include "qobject.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qobject.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 
 
 static void qint_destroy_obj(QObject *obj);
 static void qint_destroy_obj(QObject *obj);

+ 9 - 9
qjson.c

@@ -11,15 +11,15 @@
  *
  *
  */
  */
 
 
-#include "json-lexer.h"
-#include "json-parser.h"
-#include "json-streamer.h"
-#include "qjson.h"
-#include "qint.h"
-#include "qlist.h"
-#include "qbool.h"
-#include "qfloat.h"
-#include "qdict.h"
+#include "qapi/qmp/json-lexer.h"
+#include "qapi/qmp/json-parser.h"
+#include "qapi/qmp/json-streamer.h"
+#include "qapi/qmp/qjson.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qfloat.h"
+#include "qapi/qmp/qdict.h"
 
 
 typedef struct JSONParsingState
 typedef struct JSONParsingState
 {
 {

+ 2 - 2
qlist.c

@@ -10,8 +10,8 @@
  * See the COPYING.LIB file in the top-level directory.
  * See the COPYING.LIB file in the top-level directory.
  */
  */
 
 
-#include "qlist.h"
-#include "qobject.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qobject.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 
 

+ 6 - 6
qom/object.c

@@ -12,18 +12,18 @@
 
 
 #include "qemu/object.h"
 #include "qemu/object.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 #include "qapi/string-input-visitor.h"
 #include "qapi/string-input-visitor.h"
 #include "qapi/string-output-visitor.h"
 #include "qapi/string-output-visitor.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
 
 /* TODO: replace QObject with a simpler visitor to avoid a dependency
 /* TODO: replace QObject with a simpler visitor to avoid a dependency
  * of the QOM core on QObject?  */
  * of the QOM core on QObject?  */
 #include "qemu/qom-qobject.h"
 #include "qemu/qom-qobject.h"
-#include "qobject.h"
-#include "qbool.h"
-#include "qint.h"
-#include "qstring.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qstring.h"
 
 
 #define MAX_INTERFACES 32
 #define MAX_INTERFACES 32
 
 

+ 1 - 1
qom/qom-qobject.c

@@ -12,7 +12,7 @@
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "qemu/object.h"
 #include "qemu/object.h"
 #include "qemu/qom-qobject.h"
 #include "qemu/qom-qobject.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 #include "qapi/qmp-input-visitor.h"
 #include "qapi/qmp-input-visitor.h"
 #include "qapi/qmp-output-visitor.h"
 #include "qapi/qmp-output-visitor.h"
 
 

+ 2 - 2
qstring.c

@@ -10,8 +10,8 @@
  * See the COPYING.LIB file in the top-level directory.
  * See the COPYING.LIB file in the top-level directory.
  */
  */
 
 
-#include "qobject.h"
-#include "qstring.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qstring.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 
 
 static void qstring_destroy_obj(QObject *obj);
 static void qstring_destroy_obj(QObject *obj);

+ 7 - 7
scripts/qapi-commands.py

@@ -342,8 +342,8 @@ def gen_command_decl_prologue(header, guard, prefix=""):
 #define %(guard)s
 #define %(guard)s
 
 
 #include "%(prefix)sqapi-types.h"
 #include "%(prefix)sqapi-types.h"
-#include "qdict.h"
-#include "error.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/error.h"
 
 
 ''',
 ''',
                  header=basename(header), guard=guardname(header), prefix=prefix)
                  header=basename(header), guard=guardname(header), prefix=prefix)
@@ -368,13 +368,13 @@ def gen_command_def_prologue(prefix="", proxy=False):
 
 
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "module.h"
 #include "module.h"
-#include "qerror.h"
-#include "qemu-objects.h"
-#include "qapi/qmp-core.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/qmp/qerror.h"
+#include "qapi/qmp/types.h"
+#include "qapi/qmp/dispatch.h"
+#include "qapi/visitor.h"
 #include "qapi/qmp-output-visitor.h"
 #include "qapi/qmp-output-visitor.h"
 #include "qapi/qmp-input-visitor.h"
 #include "qapi/qmp-input-visitor.h"
-#include "qapi/qapi-dealloc-visitor.h"
+#include "qapi/dealloc-visitor.h"
 #include "%(prefix)sqapi-types.h"
 #include "%(prefix)sqapi-types.h"
 #include "%(prefix)sqapi-visit.h"
 #include "%(prefix)sqapi-visit.h"
 
 

+ 1 - 1
scripts/qapi-types.py

@@ -248,7 +248,7 @@ def maybe_open(really, name, opt):
  *
  *
  */
  */
 
 
-#include "qapi/qapi-dealloc-visitor.h"
+#include "qapi/dealloc-visitor.h"
 #include "%(prefix)sqapi-types.h"
 #include "%(prefix)sqapi-types.h"
 #include "%(prefix)sqapi-visit.h"
 #include "%(prefix)sqapi-visit.h"
 
 

+ 1 - 1
scripts/qapi-visit.py

@@ -322,7 +322,7 @@ def maybe_open(really, name, opt):
 #ifndef %(guard)s
 #ifndef %(guard)s
 #define %(guard)s
 #define %(guard)s
 
 
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 #include "%(prefix)sqapi-types.h"
 #include "%(prefix)sqapi-types.h"
 ''',
 ''',
                   prefix=prefix, guard=guardname(h_file)))
                   prefix=prefix, guard=guardname(h_file)))

+ 1 - 1
stubs/arch-query-cpu-def.c

@@ -1,6 +1,6 @@
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "arch_init.h"
 #include "arch_init.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
 
 CpuDefinitionInfoList *arch_query_cpu_definitions(Error **errp)
 CpuDefinitionInfoList *arch_query_cpu_definitions(Error **errp)
 {
 {

+ 1 - 1
target-i386/cpu-qom.h

@@ -22,7 +22,7 @@
 
 
 #include "qemu/cpu.h"
 #include "qemu/cpu.h"
 #include "cpu.h"
 #include "cpu.h"
-#include "error.h"
+#include "qapi/error.h"
 
 
 #ifdef TARGET_X86_64
 #ifdef TARGET_X86_64
 #define TYPE_X86_CPU "x86_64-cpu"
 #define TYPE_X86_CPU "x86_64-cpu"

+ 2 - 2
target-i386/cpu.c

@@ -26,9 +26,9 @@
 
 
 #include "qemu-option.h"
 #include "qemu-option.h"
 #include "qemu-config.h"
 #include "qemu-config.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
 
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 #include "arch_init.h"
 #include "arch_init.h"
 
 
 #include "hyperv.h"
 #include "hyperv.h"

+ 1 - 1
target-openrisc/cpu.h

@@ -33,7 +33,7 @@ struct OpenRISCCPU;
 #include "cpu-defs.h"
 #include "cpu-defs.h"
 #include "softfloat.h"
 #include "softfloat.h"
 #include "qemu/cpu.h"
 #include "qemu/cpu.h"
-#include "error.h"
+#include "qapi/error.h"
 
 
 #define TYPE_OPENRISC_CPU "or32-cpu"
 #define TYPE_OPENRISC_CPU "or32-cpu"
 
 

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff