mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qom: allow user-creatable classes to be in modules
There is no real reason to make user-creatable classes different from other backends in this respect. This also allows modularized character devices to be treated by qom-list-properties just like builtin ones. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
02009a12bc
commit
f41823e059
2 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ Object *user_creatable_add_type(const char *type, const char *id,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
klass = object_class_by_name(type);
|
||||
klass = module_object_class_by_name(type);
|
||||
if (!klass) {
|
||||
error_setg(errp, "invalid object type: %s", type);
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue