object: add g_autoptr support

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Marc-André Lureau 2019-11-08 18:02:25 +04:00
parent f908475f2f
commit f60a1cdca5

View file

@ -1766,4 +1766,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