2009-11-11 17:42:41 +01:00
|
|
|
/*
|
|
|
|
* QObject JSON integration
|
|
|
|
*
|
|
|
|
* Copyright IBM, Corp. 2009
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Anthony Liguori <aliguori@us.ibm.com>
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
|
|
|
|
* See the COPYING.LIB file in the top-level directory.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QJSON_H
|
|
|
|
#define QJSON_H
|
|
|
|
|
2017-02-28 22:26:58 +01:00
|
|
|
QObject *qobject_from_json(const char *string, Error **errp);
|
2009-11-11 17:42:41 +01:00
|
|
|
|
2018-08-06 08:53:28 +02:00
|
|
|
QObject *qobject_from_vjsonf_nofail(const char *string, va_list ap)
|
|
|
|
GCC_FMT_ATTR(1, 0);
|
2018-08-06 08:53:27 +02:00
|
|
|
QObject *qobject_from_jsonf_nofail(const char *string, ...)
|
|
|
|
GCC_FMT_ATTR(1, 2);
|
2018-08-06 08:53:28 +02:00
|
|
|
QDict *qdict_from_vjsonf_nofail(const char *string, va_list ap)
|
|
|
|
GCC_FMT_ATTR(1, 0);
|
2018-08-06 08:53:27 +02:00
|
|
|
QDict *qdict_from_jsonf_nofail(const char *string, ...)
|
|
|
|
GCC_FMT_ATTR(1, 2);
|
2018-07-03 10:53:47 +02:00
|
|
|
|
2020-12-11 18:11:37 +01:00
|
|
|
GString *qobject_to_json(const QObject *obj);
|
|
|
|
GString *qobject_to_json_pretty(const QObject *obj, bool pretty);
|
2009-11-11 19:01:22 +01:00
|
|
|
|
2009-11-11 17:42:41 +01:00
|
|
|
#endif /* QJSON_H */
|