blob: 2f356ff3127ec57edc7bba86b896bad8dde839e7 [file] [log] [blame]
Jiang Jiacheng67132622023-02-03 15:35:18 +08001/*
2 * Migration Threads info
3 *
4 * Copyright (c) 2022 HUAWEI TECHNOLOGIES CO., LTD.
5 *
6 * Authors:
7 * Jiang Jiacheng <jiangjiacheng@huawei.com>
8 *
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
11 */
12
Jiang Jiacheng67132622023-02-03 15:35:18 +080013#include "qapi/error.h"
14#include "qapi/qapi-commands-migration.h"
15
16typedef struct MigrationThread MigrationThread;
17
18struct MigrationThread {
19 const char *name; /* the name of migration thread */
20 int thread_id; /* ID of the underlying host thread */
21 QLIST_ENTRY(MigrationThread) node;
22};
23
Fabiano Rosas788fa682023-06-07 13:13:04 -030024MigrationThread *migration_threads_add(const char *name, int thread_id);
25void migration_threads_remove(MigrationThread *info);