mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-15 22:21:57 -06:00
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>
This commit is contained in:
parent
90629122d2
commit
81d8ccb1be
2 changed files with 12 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue