mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
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>
This commit is contained in:
parent
96eef04238
commit
a2d07731e7
2 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue