qjson.h 848 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * QObject JSON integration
  3. *
  4. * Copyright IBM, Corp. 2009
  5. *
  6. * Authors:
  7. * Anthony Liguori <aliguori@us.ibm.com>
  8. *
  9. * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
  10. * See the COPYING.LIB file in the top-level directory.
  11. *
  12. */
  13. #ifndef QJSON_H
  14. #define QJSON_H
  15. QObject *qobject_from_json(const char *string, Error **errp);
  16. QObject *qobject_from_vjsonf_nofail(const char *string, va_list ap)
  17. G_GNUC_PRINTF(1, 0);
  18. QObject *qobject_from_jsonf_nofail(const char *string, ...)
  19. G_GNUC_PRINTF(1, 2);
  20. QDict *qdict_from_vjsonf_nofail(const char *string, va_list ap)
  21. G_GNUC_PRINTF(1, 0);
  22. QDict *qdict_from_jsonf_nofail(const char *string, ...)
  23. G_GNUC_PRINTF(1, 2);
  24. GString *qobject_to_json(const QObject *obj);
  25. GString *qobject_to_json_pretty(const QObject *obj, bool pretty);
  26. #endif /* QJSON_H */