mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
include/qapi: add g_autoptr support for qobject types
Need wrappers for qobject_unref() calls, which is a macro. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220323155743.1585078-10-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
7773e13fa7
commit
d709bbf3b1
@ -56,3 +56,8 @@ void qbool_destroy_obj(QObject *obj)
|
||||
assert(obj != NULL);
|
||||
g_free(qobject_to(QBool, obj));
|
||||
}
|
||||
|
||||
void qbool_unref(QBool *q)
|
||||
{
|
||||
qobject_unref(q);
|
||||
}
|
||||
|
Reference in New Issue
Block a user