diff options
Diffstat (limited to 'chardev/char-ringbuf.c')
-rw-r--r-- | chardev/char-ringbuf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chardev/char-ringbuf.c b/chardev/char-ringbuf.c index 67397a8ce9..301a5d8634 100644 --- a/chardev/char-ringbuf.c +++ b/chardev/char-ringbuf.c @@ -29,16 +29,18 @@ #include "qemu/base64.h" #include "qemu/module.h" #include "qemu/option.h" +#include "qom/object.h" /* Ring buffer chardev */ -typedef struct { +struct RingBufChardev { Chardev parent; size_t size; size_t prod; size_t cons; uint8_t *cbuf; -} RingBufChardev; +}; +typedef struct RingBufChardev RingBufChardev; #define RINGBUF_CHARDEV(obj) \ OBJECT_CHECK(RingBufChardev, (obj), TYPE_CHARDEV_RINGBUF) |