diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-03-01 11:05:41 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-03-05 08:44:11 +0100 |
commit | 61b4d9a24668d3b14f80d25ab66f6081f1ab7b17 (patch) | |
tree | 37392f315f35f505a5c637d201720a9612e43beb /include | |
parent | 898f9d41d02d577ac863069772f0708268d2f926 (diff) | |
download | qemu-61b4d9a24668d3b14f80d25ab66f6081f1ab7b17.zip qemu-61b4d9a24668d3b14f80d25ab66f6081f1ab7b17.tar.gz qemu-61b4d9a24668d3b14f80d25ab66f6081f1ab7b17.tar.bz2 |
console: add ui module loading support
If a requested user interface is not available, try loading it as
module, simliar to block layer modules. Needed to keep things working
when followup patches start to build user interfaces as modules.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20180301100547.18962-8-kraxel@redhat.com
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/module.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/module.h b/include/qemu/module.h index 56dd218..9fea75a 100644 --- a/include/qemu/module.h +++ b/include/qemu/module.h @@ -53,6 +53,7 @@ typedef enum { #define trace_init(function) module_init(function, MODULE_INIT_TRACE) #define block_module_load_one(lib) module_load_one("block-", lib) +#define ui_module_load_one(lib) module_load_one("ui-", lib) void register_module_init(void (*fn)(void), module_init_type type); void register_dso_module_init(void (*fn)(void), module_init_type type); |