tests: fix output message formatting for crypto benchmarks
[qemu/ar7.git] / migration / qjson.h
blob1786bb5864a0973df95626668d3140d268c92164
1 /*
2 * QEMU JSON writer
4 * Copyright Alexander Graf
6 * Authors:
7 * Alexander Graf <agraf@suse.de>
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.
13 #ifndef QEMU_QJSON_H
14 #define QEMU_QJSON_H
16 QJSON *qjson_new(void);
17 void qjson_destroy(QJSON *json);
18 void json_prop_str(QJSON *json, const char *name, const char *str);
19 void json_prop_int(QJSON *json, const char *name, int64_t val);
20 void json_end_array(QJSON *json);
21 void json_start_array(QJSON *json, const char *name);
22 void json_end_object(QJSON *json);
23 void json_start_object(QJSON *json, const char *name);
24 const char *qjson_get_str(QJSON *json);
25 void qjson_finish(QJSON *json);
27 G_DEFINE_AUTOPTR_CLEANUP_FUNC(QJSON, qjson_destroy)
29 #endif /* QEMU_QJSON_H */