On 3/8/25 15:09, Philippe Mathieu-Daudé wrote:
In order to be able to check whether a QOM type has been
registered, introduce the type_is_registered() helper.
Signed-off-by: Philippe Mathieu-Daudé<[email protected]>
---
include/qom/object.h | 8 ++++++++
qom/object.c | 5 +++++
2 files changed, 13 insertions(+)
Does the non-initialization of the type matter for your usage?
In other words, would object_class_by_name() do the job just as well?
But seems reasonable, anyway.
Reviewed-by: Richard Henderson <[email protected]>
r~