diff options
| author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-05-04 13:56:55 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-10 12:09:37 -0400 |
| commit | 78f8d4975c5d035e2e2447e6e499629b96142db0 (patch) | |
| tree | 64ccc52a46856977f5d5bf0ec20cc3aabda6c713 | |
| parent | ca27b5eb7cdd112ed465bd757358af4c06e135ea (diff) | |
| download | focaccia-qemu-78f8d4975c5d035e2e2447e6e499629b96142db0.tar.gz focaccia-qemu-78f8d4975c5d035e2e2447e6e499629b96142db0.zip | |
io/task: Move 'qom/object.h' header to source
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>
| -rw-r--r-- | include/io/task.h | 2 | ||||
| -rw-r--r-- | io/task.c | 1 | ||||
| -rw-r--r-- | tests/test-io-task.c | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/include/io/task.h b/include/io/task.h index 1abbfb8b65..6818dfedd0 100644 --- a/include/io/task.h +++ b/include/io/task.h @@ -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, diff --git a/io/task.c b/io/task.c index 1ae7b86488..53c0bed686 100644 --- 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 { diff --git a/tests/test-io-task.c b/tests/test-io-task.c index aa8b653bfa..c8a3813d49 100644 --- a/tests/test-io-task.c +++ b/tests/test-io-task.c @@ -20,6 +20,7 @@ #include "qemu/osdep.h" +#include "qom/object.h" #include "io/task.h" #include "qapi/error.h" #include "qemu/module.h" |