summary refs log tree commit diff stats
path: root/include/qemu
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-07-22 17:13:23 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2019-08-21 16:29:57 +0200
commit81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f (patch)
tree4f0002c5da0e89a390594e525140ffb6c6ea4727 /include/qemu
parent90629122d2ef536290882c71ca16bac3df842ca1 (diff)
downloadfocaccia-qemu-81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f.tar.gz
focaccia-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