aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-04-13 14:19:57 +0100
committerGitHub <noreply@github.com>2021-04-13 14:19:57 +0100
commitb0cba8d875a19e1c086ca93844d68ff42f0b0a54 (patch)
tree8a5c849af5a0628e2d1798b838909ee127841526 /include
parent59cc98aa2fa8f7e1713c90a534b37970fa526164 (diff)
downloadlibvfio-user-b0cba8d875a19e1c086ca93844d68ff42f0b0a54.zip
libvfio-user-b0cba8d875a19e1c086ca93844d68ff42f0b0a54.tar.gz
libvfio-user-b0cba8d875a19e1c086ca93844d68ff42f0b0a54.tar.bz2
drop use of __u* types (#438)
As we are now pure userspace, there is no need for us to use non-standard integer types. This leaves the copied defines from Linux's vfio.h alone, however. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r--include/libvfio-user.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h
index f2876a1..fa21bc2 100644
--- a/include/libvfio-user.h
+++ b/include/libvfio-user.h
@@ -512,7 +512,7 @@ typedef struct {
* function returns 0 then migration has finished and this function won't
* be called again.
*/
- __u64 (*get_pending_bytes)(vfu_ctx_t *vfu_ctx);
+ uint64_t (*get_pending_bytes)(vfu_ctx_t *vfu_ctx);
/*
* Function that is called to instruct the device to prepare migration data
@@ -525,7 +525,7 @@ typedef struct {
* When in resuming state, @offset must be set to where migration data must
* written. @size points to NULL.
*/
- int (*prepare_data)(vfu_ctx_t *vfu_ctx, __u64 *offset, __u64 *size);
+ int (*prepare_data)(vfu_ctx_t *vfu_ctx, uint64_t *offset, uint64_t *size);
/*
* Function that is called to read migration data. offset and size can be
@@ -539,7 +539,7 @@ typedef struct {
* Does this mean that reading data_offset/data_size updates the values?
*/
ssize_t (*read_data)(vfu_ctx_t *vfu_ctx, void *buf,
- __u64 count, __u64 offset);
+ uint64_t count, uint64_t offset);
/* Callbacks for restoring device state */
@@ -548,14 +548,14 @@ typedef struct {
* function must return the amount of data written or -1 on error, setting
* errno.
*/
- ssize_t (*write_data)(vfu_ctx_t *vfu_ctx, void *buf, __u64 count,
- __u64 offset);
+ ssize_t (*write_data)(vfu_ctx_t *vfu_ctx, void *buf, uint64_t count,
+ uint64_t offset);
/*
* Function that is called when client has written some previously stored
* device state.
*/
- int (*data_written)(vfu_ctx_t *vfu_ctx, __u64 count);
+ int (*data_written)(vfu_ctx_t *vfu_ctx, uint64_t count);
} vfu_migration_callbacks_t;