]> Git Repo - qemu.git/blob - include/migration/blocker.h
cpus: Fix configure_icount() error API violation
[qemu.git] / include / migration / blocker.h
1 /*
2  * QEMU migration blockers
3  *
4  * Copyright IBM, Corp. 2008
5  *
6  * Authors:
7  *  Anthony Liguori   <[email protected]>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2.  See
10  * the COPYING file in the top-level directory.
11  *
12  */
13
14 #ifndef MIGRATION_BLOCKER_H
15 #define MIGRATION_BLOCKER_H
16
17 /**
18  * @migrate_add_blocker - prevent migration from proceeding
19  *
20  * @reason - an error to be returned whenever migration is attempted
21  *
22  * @errp - [out] The reason (if any) we cannot block migration right now.
23  *
24  * @returns - 0 on success, -EBUSY/-EACCES on failure, with errp set.
25  */
26 int migrate_add_blocker(Error *reason, Error **errp);
27
28 /**
29  * @migrate_del_blocker - remove a blocking error from migration
30  *
31  * @reason - the error blocking migration
32  */
33 void migrate_del_blocker(Error *reason);
34
35 #endif
This page took 0.030684 seconds and 4 git commands to generate.