From 8ff5a7d346b932fbae49d08d8824d0cc15c3ed3c Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Wed, 18 Nov 2009 23:05:24 -0200 Subject: QJSON: Introduce qobject_from_jsonv() It accepts a va_list and will be used by QError. Also simplifies the code a little, as the other qobject_from_() functions can use it. Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori --- qjson.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qjson.h') diff --git a/qjson.h b/qjson.h index 7fce742c4..7afec2eec 100644 --- a/qjson.h +++ b/qjson.h @@ -14,12 +14,14 @@ #ifndef QJSON_H #define QJSON_H +#include #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); QString *qobject_to_json(const QObject *obj); -- cgit v1.2.3