]> git.proxmox.com Git - mirror_qemu.git/blobdiff - chardev/char-pty.c
Move QOM typedefs and add missing includes
[mirror_qemu.git] / chardev / char-pty.c
index 1cc501a481edeb94023e9300c0632ed59a867691..963fe4f0caf3e13cac6e28c1cebff843e8d3cb98 100644 (file)
 #include "qemu/qemu-print.h"
 
 #include "chardev/char-io.h"
+#include "qom/object.h"
 
-typedef struct {
+struct PtyChardev {
     Chardev parent;
     QIOChannel *ioc;
     int read_bytes;
 
     int connected;
     GSource *timer_src;
-} PtyChardev;
+};
+typedef struct PtyChardev PtyChardev;
 
 #define PTY_CHARDEV(obj) OBJECT_CHECK(PtyChardev, (obj), TYPE_CHARDEV_PTY)