aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2020-01-22 18:55:02 +0100
committerJuan Quintela <quintela@redhat.com>2020-02-28 09:24:43 +0100
commita2d07731e7e2f1462e90f9d0a7eaf9e39da29eb0 (patch)
tree6cdaa1e9fce7f0f77057c8e0e8cf04721cd588cc /include
parent96eef04238f4bef63cc2beeef804701f9b60ea7d (diff)
downloadqemu-a2d07731e7e2f1462e90f9d0a7eaf9e39da29eb0.zip
qemu-a2d07731e7e2f1462e90f9d0a7eaf9e39da29eb0.tar.gz
qemu-a2d07731e7e2f1462e90f9d0a7eaf9e39da29eb0.tar.bz2
migration: Add support for modules
So we don't have to compile everything in, or have ifdefs Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/module.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/module.h b/include/qemu/module.h
index 684753d..011ae1a 100644
--- a/include/qemu/module.h
+++ b/include/qemu/module.h
@@ -40,6 +40,7 @@ static void __attribute__((constructor)) do_qemu_init_ ## function(void) \
#endif
typedef enum {
+ MODULE_INIT_MIGRATION,
MODULE_INIT_BLOCK,
MODULE_INIT_OPTS,
MODULE_INIT_QOM,
@@ -59,6 +60,7 @@ typedef enum {
#define libqos_init(function) module_init(function, MODULE_INIT_LIBQOS)
#define fuzz_target_init(function) module_init(function, \
MODULE_INIT_FUZZ_TARGET)
+#define migration_init(function) module_init(function, MODULE_INIT_MIGRATION)
#define block_module_load_one(lib) module_load_one("block-", lib)
#define ui_module_load_one(lib) module_load_one("ui-", lib)
#define audio_module_load_one(lib) module_load_one("audio-", lib)