From b91f52e49039d41007c530a5ba7554c1603060c9 Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 14 Apr 2021 10:45:41 +0100 Subject: migration: use ERROR_INT() (#432) Signed-off-by: John Levon Reviewed-by: Thanos Makatos --- include/libvfio-user.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libvfio-user.h b/include/libvfio-user.h index fa21bc2..d1c30e4 100644 --- a/include/libvfio-user.h +++ b/include/libvfio-user.h @@ -495,7 +495,7 @@ typedef struct { /* * Migration state transition callback. * - * Returns -1 on error, setting errno. + * The callback should return -1 on error, setting errno. * * TODO rename to vfu_migration_state_transition_callback * FIXME maybe we should create a single callback and pass the state? @@ -524,6 +524,8 @@ typedef struct { * * When in resuming state, @offset must be set to where migration data must * written. @size points to NULL. + * + * The callback should return -1 on error, setting errno. */ int (*prepare_data)(vfu_ctx_t *vfu_ctx, uint64_t *offset, uint64_t *size); @@ -554,6 +556,8 @@ typedef struct { /* * Function that is called when client has written some previously stored * device state. + * + * The callback should return -1 on error, setting errno. */ int (*data_written)(vfu_ctx_t *vfu_ctx, uint64_t count); -- cgit v1.1