aboutsummaryrefslogtreecommitdiffstats
path: root/qjson.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-05-11 00:22:51 +0200
committerDavid 'Digit' Turner <digit@android.com>2011-06-01 17:08:19 +0200
commitf0753acaab4309557754ec19d3e839fe6b5e356c (patch)
treeaca66d0f9969d71edacc64c7304c53d96895ed81 /qjson.h
parent8354d2d35fe4463816dcc52a96fa354940fdd38f (diff)
downloadexternal_qemu-f0753acaab4309557754ec19d3e839fe6b5e356c.zip
external_qemu-f0753acaab4309557754ec19d3e839fe6b5e356c.tar.gz
external_qemu-f0753acaab4309557754ec19d3e839fe6b5e356c.tar.bz2
qjson.c: minor integrate
Change-Id: Id2c8a26a772d7fe76b8ec6a339a32111946d1350
Diffstat (limited to 'qjson.h')
-rw-r--r--qjson.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/qjson.h b/qjson.h
index 7afec2e..65b10ea 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 */