]> git.ipfire.org Git - thirdparty/qemu.git/blame - include/hw/virtio/vhost-user-vsock.h
Move QOM typedefs and add missing includes
[thirdparty/qemu.git] / include / hw / virtio / vhost-user-vsock.h
CommitLineData
5fe97d88
SG
1/*
2 * Vhost-user vsock virtio device
3 *
4 * Copyright 2020 Red Hat, Inc.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2 or
7 * (at your option) any later version. See the COPYING file in the
8 * top-level directory.
9 */
10
11#ifndef _QEMU_VHOST_USER_VSOCK_H
12#define _QEMU_VHOST_USER_VSOCK_H
13
14#include "hw/virtio/vhost-vsock-common.h"
15#include "hw/virtio/vhost-user.h"
16#include "standard-headers/linux/virtio_vsock.h"
db1015e9 17#include "qom/object.h"
5fe97d88
SG
18
19#define TYPE_VHOST_USER_VSOCK "vhost-user-vsock-device"
db1015e9 20typedef struct VHostUserVSock VHostUserVSock;
5fe97d88
SG
21#define VHOST_USER_VSOCK(obj) \
22 OBJECT_CHECK(VHostUserVSock, (obj), TYPE_VHOST_USER_VSOCK)
23
24typedef struct {
25 CharBackend chardev;
26} VHostUserVSockConf;
27
db1015e9 28struct VHostUserVSock {
5fe97d88
SG
29 /*< private >*/
30 VHostVSockCommon parent;
31 VhostUserState vhost_user;
32 VHostUserVSockConf conf;
33 struct virtio_vsock_config vsockcfg;
34
35 /*< public >*/
db1015e9 36};
5fe97d88
SG
37
38#endif /* _QEMU_VHOST_USER_VSOCK_H */