]> git.proxmox.com Git - qemu.git/blobdiff - qjson.h
sdl: Fix termination in -no-shutdown mode
[qemu.git] / qjson.h
diff --git a/qjson.h b/qjson.h
index 38be643df00a428591b304ca47ac1fe637fb645a..65b10ea369e5e54447b781903ea258511593b1ed 100644 (file)
--- a/qjson.h
+++ b/qjson.h
 #ifndef QJSON_H
 #define QJSON_H
 
+#include <stdarg.h>
 #include "qobject.h"
+#include "qstring.h"
 
-QObject *qobject_from_json(const char *string);
-QObject *qobject_from_jsonf(const char *string, ...)
-    __attribute__((__format__ (__printf__, 1, 2)));
+QObject *qobject_from_json(const char *string) GCC_FMT_ATTR(1, 0);
+QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2);
+QObject *qobject_from_jsonv(const char *string, va_list *ap) GCC_FMT_ATTR(1, 0);
+
+QString *qobject_to_json(const QObject *obj);
+QString *qobject_to_json_pretty(const QObject *obj);
 
 #endif /* QJSON_H */