aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-12-02 09:00:23 -0500
committerThanos Makatos <tmakatos@gmail.com>2020-12-07 10:24:34 +0000
commit331de08bd97d97433655fafd681b2d278e5d9d8d (patch)
tree020c1ff74523a535dd85fb27fc59227cd8eda482
parentd7529cf85db5f46e0f1d283bcd61e1a7690aab30 (diff)
downloadlibvfio-user-331de08bd97d97433655fafd681b2d278e5d9d8d.zip
libvfio-user-331de08bd97d97433655fafd681b2d278e5d9d8d.tar.gz
libvfio-user-331de08bd97d97433655fafd681b2d278e5d9d8d.tar.bz2
move vfu_cap_t closer to where it's used
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
-rw-r--r--include/libvfio-user.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h
index 9d3513b..c39dba5 100644
--- a/include/libvfio-user.h
+++ b/include/libvfio-user.h
@@ -133,14 +133,6 @@ typedef ssize_t (vfu_cap_access_t) (void *pvt, uint8_t id,
char *buf, size_t count,
loff_t offset, bool is_write);
-/* FIXME does it have to be packed as well? */
-typedef union {
- struct msicap msi;
- struct msixcap msix;
- struct pmcap pm;
- struct pxcap px;
-} vfu_cap_t;
-
typedef enum {
VFU_TRANS_SOCK,
VFU_TRANS_MAX
@@ -286,6 +278,14 @@ vfu_pci_setup_config_hdr(vfu_ctx_t *vfu_ctx, vfu_pci_hdr_id_t id,
vfu_pci_type_t pci_type,
int revision __attribute__((unused)));
+/* FIXME does it have to be packed as well? */
+typedef union {
+ struct msicap msi;
+ struct msixcap msix;
+ struct pmcap pm;
+ struct pxcap px;
+} vfu_cap_t;
+
//TODO: Support variable size capabilities.
/**
* Setup PCI capabilities.