mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
8063396bf3
This converts existing DECLARE_INSTANCE_CHECKER usage to OBJECT_DECLARE_SIMPLE_TYPE when possible. $ ./scripts/codeconverter/converter.py -i \ --pattern=AddObjectDeclareSimpleType $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Paul Durrant <paul@xen.org> Message-Id: <20200916182519.415636-6-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
20 lines
433 B
C
20 lines
433 B
C
#ifndef QEMU_VIRTIO_9P_H
|
|
#define QEMU_VIRTIO_9P_H
|
|
|
|
#include "standard-headers/linux/virtio_9p.h"
|
|
#include "hw/virtio/virtio.h"
|
|
#include "9p.h"
|
|
#include "qom/object.h"
|
|
|
|
struct V9fsVirtioState {
|
|
VirtIODevice parent_obj;
|
|
VirtQueue *vq;
|
|
size_t config_size;
|
|
VirtQueueElement *elems[MAX_REQ];
|
|
V9fsState state;
|
|
};
|
|
|
|
#define TYPE_VIRTIO_9P "virtio-9p-device"
|
|
OBJECT_DECLARE_SIMPLE_TYPE(V9fsVirtioState, VIRTIO_9P)
|
|
|
|
#endif
|