aboutsummaryrefslogtreecommitdiff
path: root/include/qemu
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-06-24 15:10:36 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-07-07 14:54:29 +0200
commit28457744c345ca4ccb58c984c9552e9c5955a9de (patch)
treeead752b46d257cdf4ff53fcb3d4200c2b22caca5 /include/qemu
parent7623b5ba017f61de5d7c2bba12c6feb3d55091b1 (diff)
downloadqemu-28457744c345ca4ccb58c984c9552e9c5955a9de.zip
qemu-28457744c345ca4ccb58c984c9552e9c5955a9de.tar.gz
qemu-28457744c345ca4ccb58c984c9552e9c5955a9de.tar.bz2
module: qom module support
Add support for qom types provided by modules. For starters use a manually maintained list which maps qom type to module and prefix. Two load functions are added: One to load the module for a specific type, and one to load all modules (needed for object/device lists as printed by -- for example -- qemu -device help). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20200624131045.14512-2-kraxel@redhat.com
Diffstat (limited to 'include/qemu')
-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 011ae1a..9121a47 100644
--- a/include/qemu/module.h
+++ b/include/qemu/module.h
@@ -70,5 +70,7 @@ void register_dso_module_init(void (*fn)(void), module_init_type type);
void module_call_init(module_init_type type);
bool module_load_one(const char *prefix, const char *lib_name);
+void module_load_qom_one(const char *type);
+void module_load_qom_all(void);
#endif