rdma.h 837 B

12345678910111213141516171819202122232425262728293031323334353637
  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. #ifndef RDMA_H
  15. #define RDMA_H
  16. #include "qom/object.h"
  17. #define INTERFACE_RDMA_PROVIDER "rdma"
  18. typedef struct RdmaProviderClass RdmaProviderClass;
  19. DECLARE_CLASS_CHECKERS(RdmaProviderClass, RDMA_PROVIDER,
  20. INTERFACE_RDMA_PROVIDER)
  21. #define RDMA_PROVIDER(obj) \
  22. INTERFACE_CHECK(RdmaProvider, (obj), \
  23. INTERFACE_RDMA_PROVIDER)
  24. typedef struct RdmaProvider RdmaProvider;
  25. struct RdmaProviderClass {
  26. InterfaceClass parent;
  27. void (*format_statistics)(RdmaProvider *obj, GString *buf);
  28. };
  29. #endif