]> git.proxmox.com Git - qemu.git/blame - qjson.h
Revert "floppy: save and restore DIR register"
[qemu.git] / qjson.h
CommitLineData
b4748b9b
AL
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
14#ifndef QJSON_H
15#define QJSON_H
16
8ff5a7d3 17#include <stdarg.h>
b4748b9b 18#include "qobject.h"
1fd825f7 19#include "qstring.h"
b4748b9b 20
8b7968f7 21QObject *qobject_from_json(const char *string) GCC_FMT_ATTR(1, 0);
e5924d89 22QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2);
8b7968f7 23QObject *qobject_from_jsonv(const char *string, va_list *ap) GCC_FMT_ATTR(1, 0);
b4748b9b 24
1fd825f7 25QString *qobject_to_json(const QObject *obj);
212b6008 26QString *qobject_to_json_pretty(const QObject *obj);
1fd825f7 27
b4748b9b 28#endif /* QJSON_H */