aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-12-02 04:46:28 -0500
committerThanos Makatos <thanos.makatos@nutanix.com>2020-12-02 04:46:28 -0500
commit207374c07b90e386462ca6c43405345b84723a8a (patch)
treeef8928d5c1b634a48dc2d5e7e1d21a7fa2f2ed59 /include
parenta623866f21bdc102f0d96cbd196a3080439caa30 (diff)
downloadlibvfio-user-207374c07b90e386462ca6c43405345b84723a8a.zip
libvfio-user-207374c07b90e386462ca6c43405345b84723a8a.tar.gz
libvfio-user-207374c07b90e386462ca6c43405345b84723a8a.tar.bz2
introduce device type
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r--include/libvfio-user.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h
index ed4e302..721ea5d 100644
--- a/include/libvfio-user.h
+++ b/include/libvfio-user.h
@@ -238,17 +238,24 @@ typedef struct {
*/
#define LIBVFIO_USER_FLAG_ATTACH_NB (1 << 0)
+typedef enum {
+ VFU_DEV_TYPE_PCI
+} vfu_dev_type_t;
+
/**
* Creates libvfio-user context.
+ *
* @trans: transport type
* @path: path to socket file.
* @flags: context flag
* @pvt: private data
+ * @dev_type: device type
+ *
* @returns the vfu_ctx to be used or NULL on error. Sets errno.
*/
vfu_ctx_t *
vfu_create_ctx(vfu_trans_t trans, const char *path,
- int flags, void *pvt);
+ int flags, void *pvt, vfu_dev_type_t dev_type);
/**
* Setup logging information.