From 3d60fca4d4b4ef100d23f3470a5456aef1b1a68e Mon Sep 17 00:00:00 2001 From: John Levon Date: Thu, 11 Feb 2021 21:03:02 +0000 Subject: 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 Reviewed-by: Thanos Makatos --- lib/private.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/private.h') 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); -- cgit v1.1