1
2
3
4
5
6
7
8
9
10
11
12#ifndef MIGRATION_HELPERS_H_
13#define MIGRATION_HELPERS_H_
14
15#include "libqos/libqtest.h"
16
17extern bool got_stop;
18
19GCC_FMT_ATTR(3, 4)
20QDict *wait_command_fd(QTestState *who, int fd, const char *command, ...);
21
22GCC_FMT_ATTR(2, 3)
23QDict *wait_command(QTestState *who, const char *command, ...);
24
25GCC_FMT_ATTR(3, 4)
26void migrate_qmp(QTestState *who, const char *uri, const char *fmt, ...);
27
28QDict *migrate_query(QTestState *who);
29
30void wait_for_migration_status(QTestState *who,
31 const char *goal, const char **ungoals);
32
33void wait_for_migration_complete(QTestState *who);
34
35void wait_for_migration_fail(QTestState *from, bool allow_active);
36
37#endif
38