aboutsummaryrefslogtreecommitdiff
path: root/lib/migration.h
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2020-11-24 09:36:50 +0000
committerGitHub <noreply@github.com>2020-11-24 09:36:50 +0000
commit3b8d4018aa01cb4896b27cff1777beec20d27096 (patch)
tree98ee679cc6e9316331fcf8213a3867363d39f399 /lib/migration.h
parent3ba6609e1b3609b0b2764c1dcbc596f071873a83 (diff)
downloadlibvfio-user-3b8d4018aa01cb4896b27cff1777beec20d27096.zip
libvfio-user-3b8d4018aa01cb4896b27cff1777beec20d27096.tar.gz
libvfio-user-3b8d4018aa01cb4896b27cff1777beec20d27096.tar.bz2
parse VFIO_USER_VERSION JSON stanza
Diffstat (limited to 'lib/migration.h')
-rw-r--r--lib/migration.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/lib/migration.h b/lib/migration.h
index 2ef22eb..ccbbe1e 100644
--- a/lib/migration.h
+++ b/lib/migration.h
@@ -28,28 +28,30 @@
*
*/
+/* FIXME: regularize across private headers */
+#ifndef MUSER_MIGRATION_H
+#define MUSER_MIGRATION_H
+
#include <stddef.h>
#include "muser.h"
-struct migration*
-init_migration(const lm_migration_t * const lm_migr);
+struct migration *init_migration(const lm_migration_t * const lm_migr);
+
+ssize_t handle_migration_region_access(lm_ctx_t *lm_ctx, void *pvt,
+ struct migration *migr,
+ char *buf, size_t count,
+ loff_t pos, bool is_write);
-ssize_t
-handle_migration_region_access(lm_ctx_t *lm_ctx, void *pvt,
- struct migration *migr, char *buf, size_t count,
- loff_t pos, bool is_write);
+bool migration_available(lm_ctx_t *lm_ctx);
-bool
-migration_available(lm_ctx_t *lm_ctx);
+bool device_is_stopped_and_copying(struct migration *migr);
-bool
-device_is_stopped_and_copying(struct migration *migr);
+bool device_is_stopped(struct migration *migr);
-bool
-device_is_stopped(struct migration *migr);
+size_t migration_get_pgsize(struct migration *migr);
-size_t
-migration_get_pgsize(struct migration *migr);
+int migration_set_pgsize(struct migration *migr, size_t pgsize);
+#endif /* MUSER_MIGRATION_H */
/* ex: set tabstop=4 shiftwidth=4 softtabstop=4 expandtab: */