2009-11-11 16:42:41 +00: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 21:26:58 +00:00
|
|
|
QObject *qobject_from_json(const char *string, Error **errp);
|
2009-11-11 16:42:41 +00:00
|
|
|
|
2018-08-06 06:53:28 +00:00
|
|
|
QObject *qobject_from_vjsonf_nofail(const char *string, va_list ap)
|
2022-02-20 16:39:25 +00:00
|
|
|
G_GNUC_PRINTF(1, 0);
|
2018-08-06 06:53:27 +00:00
|
|
|
QObject *qobject_from_jsonf_nofail(const char *string, ...)
|
2022-02-20 16:39:25 +00:00
|
|
|
G_GNUC_PRINTF(1, 2);
|
2018-08-06 06:53:28 +00:00
|
|
|
QDict *qdict_from_vjsonf_nofail(const char *string, va_list ap)
|
2022-02-20 16:39:25 +00:00
|
|
|
G_GNUC_PRINTF(1, 0);
|
2018-08-06 06:53:27 +00:00
|
|
|
QDict *qdict_from_jsonf_nofail(const char *string, ...)
|
2022-02-20 16:39:25 +00:00
|
|
|
G_GNUC_PRINTF(1, 2);
|
2018-07-03 08:53:47 +00:00
|
|
|
|
2020-12-11 17:11:37 +00:00
|
|
|
GString *qobject_to_json(const QObject *obj);
|
|
|
|
GString *qobject_to_json_pretty(const QObject *obj, bool pretty);
|
2009-11-11 18:01:22 +00:00
|
|
|
|
2009-11-11 16:42:41 +00:00
|
|
|
#endif /* QJSON_H */
|