1b4748b9bSAnthony Liguori /* 2b4748b9bSAnthony Liguori * QObject JSON integration 3b4748b9bSAnthony Liguori * 4b4748b9bSAnthony Liguori * Copyright IBM, Corp. 2009 5b4748b9bSAnthony Liguori * 6b4748b9bSAnthony Liguori * Authors: 7b4748b9bSAnthony Liguori * Anthony Liguori <aliguori@us.ibm.com> 8b4748b9bSAnthony Liguori * 9b4748b9bSAnthony Liguori * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 10b4748b9bSAnthony Liguori * See the COPYING.LIB file in the top-level directory. 11b4748b9bSAnthony Liguori * 12b4748b9bSAnthony Liguori */ 13b4748b9bSAnthony Liguori 14b4748b9bSAnthony Liguori #ifndef QJSON_H 15b4748b9bSAnthony Liguori #define QJSON_H 16b4748b9bSAnthony Liguori 177b1b5d19SPaolo Bonzini #include "qapi/qmp/qobject.h" 187b1b5d19SPaolo Bonzini #include "qapi/qmp/qstring.h" 19b4748b9bSAnthony Liguori 20aa830cdcSPeter Maydell QObject *qobject_from_json(const char *string); 21e5924d89SStefan Weil QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2); 22*99dbfd1dSMarkus Armbruster QObject *qobject_from_jsonv(const char *string, va_list *ap, Error **errp) 23*99dbfd1dSMarkus Armbruster GCC_FMT_ATTR(1, 0); 24b4748b9bSAnthony Liguori 251fd825f7SAnthony Liguori QString *qobject_to_json(const QObject *obj); 26212b6008SDaniel P. Berrange QString *qobject_to_json_pretty(const QObject *obj); 271fd825f7SAnthony Liguori 28b4748b9bSAnthony Liguori #endif /* QJSON_H */ 29