]> git.proxmox.com Git - mirror_qemu.git/blame - include/hw/virtio/vhost-user-vsock.h
Clean up ill-advised or unusual header guards
[mirror_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
9c092804
MA
11#ifndef QEMU_VHOST_USER_VSOCK_H
12#define QEMU_VHOST_USER_VSOCK_H
5fe97d88
SG
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"
8063396b 20OBJECT_DECLARE_SIMPLE_TYPE(VHostUserVSock, VHOST_USER_VSOCK)
5fe97d88
SG
21
22typedef struct {
23 CharBackend chardev;
24} VHostUserVSockConf;
25
db1015e9 26struct VHostUserVSock {
5fe97d88
SG
27 /*< private >*/
28 VHostVSockCommon parent;
29 VhostUserState vhost_user;
30 VHostUserVSockConf conf;
31 struct virtio_vsock_config vsockcfg;
32
33 /*< public >*/
db1015e9 34};
5fe97d88 35
9c092804 36#endif /* QEMU_VHOST_USER_VSOCK_H */