aboutsummaryrefslogtreecommitdiff
path: root/include/migration/global_state.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-04-24 18:53:30 +0200
committerJuan Quintela <quintela@redhat.com>2017-06-13 11:00:45 +0200
commit84a899de8c5b7daa3777cb9ccaa7c5f362bb01b9 (patch)
treea35774f3cb08660b52abcf4650b45e66a3057d10 /include/migration/global_state.h
parent2ce3bf1aa97abb20af3a90131745c9b68e04bedd (diff)
downloadqemu-84a899de8c5b7daa3777cb9ccaa7c5f362bb01b9.zip
qemu-84a899de8c5b7daa3777cb9ccaa7c5f362bb01b9.tar.gz
qemu-84a899de8c5b7daa3777cb9ccaa7c5f362bb01b9.tar.bz2
migration: create global_state.c
It don't belong anywhere else, just the global state where everybody can stick other things. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Diffstat (limited to 'include/migration/global_state.h')
-rw-r--r--include/migration/global_state.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/migration/global_state.h b/include/migration/global_state.h
new file mode 100644
index 0000000..90faea7
--- /dev/null
+++ b/include/migration/global_state.h
@@ -0,0 +1,25 @@
+/*
+ * Global State configuration
+ *
+ * Copyright (c) 2014-2017 Red Hat Inc
+ *
+ * Authors:
+ * Juan Quintela <quintela@redhat.com>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+
+#ifndef QEMU_MIGRATION_GLOBAL_STATE_H
+#define QEMU_MIGRATION_GLOBAL_STATE_H
+
+#include "sysemu/sysemu.h"
+
+void register_global_state(void);
+void global_state_set_optional(void);
+int global_state_store(void);
+void global_state_store_running(void);
+bool global_state_received(void);
+RunState global_state_get_runstate(void);
+
+#endif