diff options
author | Juan Quintela <quintela@redhat.com> | 2017-04-24 18:53:30 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2017-06-13 11:00:45 +0200 |
commit | 84a899de8c5b7daa3777cb9ccaa7c5f362bb01b9 (patch) | |
tree | a35774f3cb08660b52abcf4650b45e66a3057d10 /include/migration/global_state.h | |
parent | 2ce3bf1aa97abb20af3a90131745c9b68e04bedd (diff) | |
download | qemu-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.h | 25 |
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 |