summaryrefslogtreecommitdiff
path: root/sysemu.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2011-09-05 16:36:31 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2011-09-15 16:39:32 -0300
commit5db9d4d18612bd5852bf663a40cf7bcf1ddc1b03 (patch)
tree0e918a5f57979bd52f3e7467e562ee61babec1db /sysemu.h
parentf5bbfba1ebe8c877ebfe846fc1e73e90da423884 (diff)
downloadqemu-5db9d4d18612bd5852bf663a40cf7bcf1ddc1b03.tar.gz
qemu-5db9d4d18612bd5852bf663a40cf7bcf1ddc1b03.tar.bz2
qemu-5db9d4d18612bd5852bf663a40cf7bcf1ddc1b03.zip
runstate_set(): Check for valid transitions
This commit could have been folded with the previous one, however doing it separately will allow for easy bisect and revert if needed. Checking and testing all valid transitions wasn't trivial, chances are this will need broader testing to become more stable. This is a transition table as suggested by LluĂ­s Vilanova. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'sysemu.h')
-rw-r--r--sysemu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysemu.h b/sysemu.h
index 19088aa2dd..a01ddac564 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -36,6 +36,7 @@ extern uint8_t qemu_uuid[];
int qemu_uuid_parse(const char *str, uint8_t *uuid);
#define UUID_FMT "%02hhx%02hhx%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx"
+void runstate_init(void);
bool runstate_check(RunState state);
void runstate_set(RunState new_state);
typedef struct vm_change_state_entry VMChangeStateEntry;