2 * RDMA device interface
4 * Copyright (C) 2019 Oracle
5 * Copyright (C) 2019 Red Hat Inc
8 * Yuval Shaia <yuval.shaia@oracle.com>
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.
18 #include "qom/object.h"
20 #define INTERFACE_RDMA_PROVIDER "rdma"
22 typedef struct RdmaProviderClass RdmaProviderClass
;
23 DECLARE_CLASS_CHECKERS(RdmaProviderClass
, RDMA_PROVIDER
,
24 INTERFACE_RDMA_PROVIDER
)
25 #define RDMA_PROVIDER(obj) \
26 INTERFACE_CHECK(RdmaProvider, (obj), \
27 INTERFACE_RDMA_PROVIDER)
29 typedef struct RdmaProvider RdmaProvider
;
31 struct RdmaProviderClass
{
32 InterfaceClass parent
;
34 void (*format_statistics
)(RdmaProvider
*obj
, GString
*buf
);