diff options
author | John Levon <john.levon@nutanix.com> | 2021-02-11 20:35:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 20:35:11 +0000 |
commit | ce35c1da0add92c690ea6ab77e1ef3d7cbba28f5 (patch) | |
tree | 906548d596d80180bbb6a79a12bd850d603b9796 /lib/private.h | |
parent | 1a049406e55ab7eeb3b69982a1ddc9ba2e5e2d2a (diff) | |
download | libvfio-user-ce35c1da0add92c690ea6ab77e1ef3d7cbba28f5.zip libvfio-user-ce35c1da0add92c690ea6ab77e1ef3d7cbba28f5.tar.gz libvfio-user-ce35c1da0add92c690ea6ab77e1ef3d7cbba28f5.tar.bz2 |
introduce transport reply() handler (#313)
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/private.h')
-rw-r--r-- | lib/private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private.h b/lib/private.h index d1176ff..829bc3a 100644 --- a/lib/private.h +++ b/lib/private.h @@ -57,6 +57,10 @@ struct transport_ops { int (*get_request)(vfu_ctx_t *vfu_ctx, struct vfio_user_header *hdr, int *fds, size_t *nr_fds); + int (*reply)(vfu_ctx_t *vfu_ctx, uint16_t msg_id, + struct iovec *iovecs, size_t nr_iovecs, + int *fds, int count, int err); + int (*send_msg)(vfu_ctx_t *vfu_ctx, uint16_t msg_id, enum vfio_user_command cmd, void *send_data, size_t send_len, |