]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - chardev/testdev.c
Move QOM typedefs and add missing includes
[thirdparty/qemu.git] / chardev / testdev.c
index 368a8c041e55f4b87d651bf9b4d9cab81a914d38..bbae59c941e39a271dc5d6fa7dae7eb0c9010ec0 100644 (file)
 #include "qemu/osdep.h"
 #include "qemu/module.h"
 #include "chardev/char.h"
+#include "qom/object.h"
 
 #define BUF_SIZE 32
 
-typedef struct {
+struct TestdevChardev {
     Chardev parent;
 
     uint8_t in_buf[32];
     int in_buf_used;
-} TestdevChardev;
+};
+typedef struct TestdevChardev TestdevChardev;
 
 #define TYPE_CHARDEV_TESTDEV "chardev-testdev"
 #define TESTDEV_CHARDEV(obj)                                    \