[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/7] object: add g_autoptr support
From: |
Marc-André Lureau |
Subject: |
[PATCH 4/7] object: add g_autoptr support |
Date: |
Wed, 27 Nov 2019 15:51:59 +0400 |
Signed-off-by: Marc-André Lureau <address@hidden>
---
include/qom/object.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/qom/object.h b/include/qom/object.h
index 128d00c77f..f96a44be64 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -1747,4 +1747,7 @@ Object *container_get(Object *root, const char *path);
* Returns the instance_size of the given @typename.
*/
size_t object_type_get_instance_size(const char *typename);
+
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(Object, object_unref)
+
#endif
--
2.24.0
- [PATCH 0/7] console: screendump improvements, Marc-André Lureau, 2019/11/27
- [PATCH 1/7] console: add graphic_hw_update_done(), Marc-André Lureau, 2019/11/27
- [PATCH 2/7] ppm-save: pass opened fd, Marc-André Lureau, 2019/11/27
- [PATCH 3/7] ui: add pixman image g_autoptr support, Marc-André Lureau, 2019/11/27
- [PATCH 4/7] object: add g_autoptr support,
Marc-André Lureau <=
- [PATCH 5/7] screendump: replace FILE with QIOChannel and fix close()/qemu_close(), Marc-André Lureau, 2019/11/27
- [PATCH 6/7] osdep: add qemu_unlink(), Marc-André Lureau, 2019/11/27
- [PATCH 7/7] screendump: use qemu_unlink(), Marc-André Lureau, 2019/11/27
- Re: [PATCH 0/7] console: screendump improvements, no-reply, 2019/11/27