diff options
author | John Levon <john.levon@nutanix.com> | 2021-04-14 10:45:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 10:45:41 +0100 |
commit | b91f52e49039d41007c530a5ba7554c1603060c9 (patch) | |
tree | a99159d9d2f8640c324500b0637049094f4c2320 /include | |
parent | 7c08067fa7376589ff8177c6cc9a36a12a12c407 (diff) | |
download | libvfio-user-b91f52e49039d41007c530a5ba7554c1603060c9.zip libvfio-user-b91f52e49039d41007c530a5ba7554c1603060c9.tar.gz libvfio-user-b91f52e49039d41007c530a5ba7554c1603060c9.tar.bz2 |
migration: use ERROR_INT() (#432)
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libvfio-user.h | 6 |
1 files changed, 5 insertions, 1 deletions
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); |