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