aboutsummaryrefslogtreecommitdiff
path: root/lib/private.h
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-12-01 07:37:07 -0500
committerThanos <tmakatos@gmail.com>2020-12-01 15:41:25 +0000
commit50f21d54d5ea96703afb466a2d2a7c805aba3f59 (patch)
treee77238fa3e5b7757da6896262ca58bd100a007bb /lib/private.h
parente68ae954776a048838be74f0bc049205acfeb878 (diff)
downloadlibvfio-user-50f21d54d5ea96703afb466a2d2a7c805aba3f59.zip
libvfio-user-50f21d54d5ea96703afb466a2d2a7c805aba3f59.tar.gz
libvfio-user-50f21d54d5ea96703afb466a2d2a7c805aba3f59.tar.bz2
make consume_fd to return the fd it consumes
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/private.h')
-rw-r--r--lib/private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private.h b/lib/private.h
index 2753a20..a2fb3a7 100644
--- a/lib/private.h
+++ b/lib/private.h
@@ -163,8 +163,8 @@ exec_command(vfu_ctx_t *vfu_ctx, struct vfio_user_header *hdr, size_t size,
int
process_request(vfu_ctx_t *vfu_ctx);
-void
-consume_fd(int *fds, size_t index);
+int
+consume_fd(int *fds, size_t nr_fds, size_t index);
#endif /* LIB_VFIO_USER_PRIVATE_H */