qjson.h 730 B

1234567891011121314151617181920212223242526272829
  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. #include <stdarg.h>
  16. #include "compiler.h"
  17. #include "qobject.h"
  18. #include "qstring.h"
  19. QObject *qobject_from_json(const char *string) GCC_FMT_ATTR(1, 0);
  20. QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2);
  21. QObject *qobject_from_jsonv(const char *string, va_list *ap) GCC_FMT_ATTR(1, 0);
  22. QString *qobject_to_json(const QObject *obj);
  23. QString *qobject_to_json_pretty(const QObject *obj);
  24. #endif /* QJSON_H */