io/task: Move 'qom/object.h' header to source
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 4 May 2020 11:56:55 +0000 (13:56 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Jun 2020 16:09:37 +0000 (12:09 -0400)
We need "qom/object.h" to call object_ref()/object_unref(),
and to test the TYPE_DUMMY.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200504115656.6045-3-f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/io/task.h
io/task.c
tests/test-io-task.c

index 1abbfb8b654b56aaaff0884bba41e39e3585239e..6818dfedd005c86fd3fe39311ae1b6ef2982b67b 100644 (file)
@@ -21,8 +21,6 @@
 #ifndef QIO_TASK_H
 #define QIO_TASK_H
 
-#include "qom/object.h"
-
 typedef struct QIOTask QIOTask;
 
 typedef void (*QIOTaskFunc)(QIOTask *task,
index 1ae7b864881a41669d4a3a924c418ed6f9107de1..53c0bed68673fe266ac266e1ebba62d30a37f363 100644 (file)
--- a/io/task.c
+++ b/io/task.c
@@ -22,6 +22,7 @@
 #include "io/task.h"
 #include "qapi/error.h"
 #include "qemu/thread.h"
+#include "qom/object.h"
 #include "trace.h"
 
 struct QIOTaskThreadData {
index aa8b653bfac26315c42ff48a5ca66dcaee3578b2..c8a3813d494cfb20efe4e986b35ce85559104885 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "qemu/osdep.h"
 
+#include "qom/object.h"
 #include "io/task.h"
 #include "qapi/error.h"
 #include "qemu/module.h"