summaryrefslogtreecommitdiffstats
path: root/include/qemu
diff options
context:
space:
mode:
authorMarc-André Lureau2019-07-22 15:13:23 +0200
committerPaolo Bonzini2019-08-21 16:29:57 +0200
commit81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f (patch)
tree4f0002c5da0e89a390594e525140ffb6c6ea4727 /include/qemu
parentmodule: use g_hash_table_add() (diff)
downloadqemu-81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f.tar.gz
qemu-81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f.tar.xz
qemu-81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f.zip
module: return success on module load
Let the caller know of load success. Note that this also changes slightly the behaviour of the function to try loading on subsequent calls if the previous ones failed. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r--include/qemu/module.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/module.h b/include/qemu/module.h
index db3065381d..65ba596e46 100644
--- a/include/qemu/module.h
+++ b/include/qemu/module.h
@@ -65,6 +65,6 @@ void register_module_init(void (*fn)(void), module_init_type type);
void register_dso_module_init(void (*fn)(void), module_init_type type);
void module_call_init(module_init_type type);
-void module_load_one(const char *prefix, const char *lib_name);
+bool module_load_one(const char *prefix, const char *lib_name);
#endif