]> git.proxmox.com Git - mirror_qemu.git/blobdiff - migration/qjson.h
migration/multifd: clean pages after filling packet
[mirror_qemu.git] / migration / qjson.h
index 2978b5f3712170a2f0878f44fefd0b4ed2016cfb..1786bb5864a0973df95626668d3140d268c92164 100644 (file)
@@ -13,8 +13,6 @@
 #ifndef QEMU_QJSON_H
 #define QEMU_QJSON_H
 
-typedef struct QJSON QJSON;
-
 QJSON *qjson_new(void);
 void qjson_destroy(QJSON *json);
 void json_prop_str(QJSON *json, const char *name, const char *str);
@@ -26,4 +24,6 @@ void json_start_object(QJSON *json, const char *name);
 const char *qjson_get_str(QJSON *json);
 void qjson_finish(QJSON *json);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(QJSON, qjson_destroy)
+
 #endif /* QEMU_QJSON_H */