Jiang Jiacheng | 6713262 | 2023-02-03 15:35:18 +0800 | [diff] [blame] | 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 | |
Jiang Jiacheng | 6713262 | 2023-02-03 15:35:18 +0800 | [diff] [blame] | 13 | #include "qapi/error.h" |
| 14 | #include "qapi/qapi-commands-migration.h" |
| 15 | |
| 16 | typedef struct MigrationThread MigrationThread; |
| 17 | |
| 18 | struct 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 Rosas | 788fa68 | 2023-06-07 13:13:04 -0300 | [diff] [blame] | 24 | MigrationThread *migration_threads_add(const char *name, int thread_id); |
| 25 | void migration_threads_remove(MigrationThread *info); |