diff options
author | Marc-André Lureau | 2022-03-23 16:57:20 +0100 |
---|---|---|
committer | Paolo Bonzini | 2022-04-06 10:50:38 +0200 |
commit | d709bbf3b17f43c91e82c3807a39f2c349d27934 (patch) | |
tree | 30e0ae475c7716d412000b7c2403092363a8afaf /qobject/qdict.c | |
parent | osdep: poison {HOST,TARGET}_WORDS_BIGENDIAN (diff) | |
download | qemu-d709bbf3b17f43c91e82c3807a39f2c349d27934.tar.gz qemu-d709bbf3b17f43c91e82c3807a39f2c349d27934.tar.xz qemu-d709bbf3b17f43c91e82c3807a39f2c349d27934.zip |
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>
Diffstat (limited to 'qobject/qdict.c')
-rw-r--r-- | qobject/qdict.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qobject/qdict.c b/qobject/qdict.c index 0216ca7ac1..8faff230d3 100644 --- a/qobject/qdict.c +++ b/qobject/qdict.c @@ -442,3 +442,8 @@ void qdict_destroy_obj(QObject *obj) g_free(qdict); } + +void qdict_unref(QDict *q) +{ + qobject_unref(q); +} |