1
2
3
4
5
6
7
8
9
10#ifndef BLOCK_QDICT_H
11#define BLOCK_QDICT_H
12
13#include "qapi/qmp/qdict.h"
14
15void qdict_copy_default(QDict *dst, QDict *src, const char *key);
16void qdict_set_default_str(QDict *dst, const char *key, const char *val);
17
18void qdict_join(QDict *dest, QDict *src, bool overwrite);
19
20void qdict_extract_subqdict(QDict *src, QDict **dst, const char *start);
21void qdict_array_split(QDict *src, QList **dst);
22int qdict_array_entries(QDict *src, const char *subqdict);
23
24typedef struct QDictRenames {
25 const char *from;
26 const char *to;
27} QDictRenames;
28bool qdict_rename_keys(QDict *qdict, const QDictRenames *renames, Error **errp);
29
30Visitor *qobject_input_visitor_new_flat_confused(QDict *qdict,
31 Error **errp);
32#endif
33