X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=qjson.h;h=65b10ea369e5e54447b781903ea258511593b1ed;hb=898517b0bc065a283249f035e7f2de251372cbdb;hp=7afec2eec1296cabd59e8b5862d6cf2c46823970;hpb=8ff5a7d346b932fbae49d08d8824d0cc15c3ed3c;p=qemu.git diff --git a/qjson.h b/qjson.h index 7afec2eec..65b10ea36 100644 --- a/qjson.h +++ b/qjson.h @@ -18,11 +18,11 @@ #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_jsonv(const char *string, va_list *ap); +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 */