]> git.proxmox.com Git - mirror_qemu.git/blob - include/hw/rdma/rdma.h
Move QOM typedefs and add missing includes
[mirror_qemu.git] / include / hw / rdma / rdma.h
1 /*
2 * RDMA device interface
3 *
4 * Copyright (C) 2019 Oracle
5 * Copyright (C) 2019 Red Hat Inc
6 *
7 * Authors:
8 * Yuval Shaia <yuval.shaia@oracle.com>
9 *
10 * This work is licensed under the terms of the GNU GPL, version 2 or later.
11 * See the COPYING file in the top-level directory.
12 *
13 */
14
15 #ifndef RDMA_H
16 #define RDMA_H
17
18 #include "qom/object.h"
19
20 #define INTERFACE_RDMA_PROVIDER "rdma"
21
22 typedef struct RdmaProviderClass RdmaProviderClass;
23 #define RDMA_PROVIDER_CLASS(klass) \
24 OBJECT_CLASS_CHECK(RdmaProviderClass, (klass), \
25 INTERFACE_RDMA_PROVIDER)
26 #define RDMA_PROVIDER_GET_CLASS(obj) \
27 OBJECT_GET_CLASS(RdmaProviderClass, (obj), \
28 INTERFACE_RDMA_PROVIDER)
29 #define RDMA_PROVIDER(obj) \
30 INTERFACE_CHECK(RdmaProvider, (obj), \
31 INTERFACE_RDMA_PROVIDER)
32
33 typedef struct RdmaProvider RdmaProvider;
34
35 struct RdmaProviderClass {
36 InterfaceClass parent;
37
38 void (*print_statistics)(Monitor *mon, RdmaProvider *obj);
39 };
40
41 #endif