diff options
author | John Levon <john.levon@nutanix.com> | 2021-02-11 21:03:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 21:03:02 +0000 |
commit | 3d60fca4d4b4ef100d23f3470a5456aef1b1a68e (patch) | |
tree | fac268d9848213fea715597f4087c4c77c731784 /lib/private.h | |
parent | 0cfb9449dc1469cb8b12369afc2c5881d6b544fd (diff) | |
download | libvfio-user-3d60fca4d4b4ef100d23f3470a5456aef1b1a68e.zip libvfio-user-3d60fca4d4b4ef100d23f3470a5456aef1b1a68e.tar.gz libvfio-user-3d60fca4d4b4ef100d23f3470a5456aef1b1a68e.tar.bz2 |
move exec_command socket handling into the transport (#320)
Also clean up some code surrounding this. In particular, don't play games with
modifying the message header.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private.h b/lib/private.h index be5cf6d..c38cc09 100644 --- a/lib/private.h +++ b/lib/private.h @@ -57,6 +57,9 @@ struct transport_ops { int (*get_request)(vfu_ctx_t *vfu_ctx, struct vfio_user_header *hdr, int *fds, size_t *nr_fds); + int (*recv_body)(vfu_ctx_t *vfu_ctx, const struct vfio_user_header *hdr, + void **datap); + int (*reply)(vfu_ctx_t *vfu_ctx, uint16_t msg_id, struct iovec *iovecs, size_t nr_iovecs, int *fds, int count, int err); |