]> git.ipfire.org Git - thirdparty/qemu.git/commit
qom: centralize module-loading functionality
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Oct 2024 09:31:30 +0000 (10:31 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Oct 2024 17:28:32 +0000 (18:28 +0100)
commit144d80f69e9ee614bf7fb06ad586cef610cec0f7
treee37f3a8cd724e4d2fbf98c1327d47bb2aac1ce29
parentb801e3cb2a7fd631a219222a8cbe9d554c906070
qom: centralize module-loading functionality

Put together the common code of object_initialize() and
module_object_class_by_name() into a function that supports
Error **.  Rename the existing function type_get_by_name() to
clarify that it will only look at defined types; this is often
okay within object.c to look at the parents, but not outside it.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qom/object.c