]> git.proxmox.com Git - mirror_qemu.git/blame - migration/threadinfo.h
Merge tag 'pull-request-2023-12-20' of https://gitlab.com/thuth/qemu into staging
[mirror_qemu.git] / migration / threadinfo.h
CommitLineData
67132620
JJ
1/*
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
67132620
JJ
13#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
788fa680
FR
24MigrationThread *migration_threads_add(const char *name, int thread_id);
25void migration_threads_remove(MigrationThread *info);