hw/sd: sd: Skip write protect groups check in sd_erase() for high capacity cards
[qemu/ar7.git] / include / block / qdict.h
blobd8cb502d7db3d687eb4701804db0562f4ca05b66
1 /*
2 * Special QDict functions used by the block layer
4 * Copyright (c) 2013-2018 Red Hat, Inc.
6 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
7 * See the COPYING.LIB file in the top-level directory.
8 */
10 #ifndef BLOCK_QDICT_H
11 #define BLOCK_QDICT_H
13 #include "qapi/qmp/qdict.h"
15 void qdict_copy_default(QDict *dst, QDict *src, const char *key);
16 void qdict_set_default_str(QDict *dst, const char *key, const char *val);
18 void qdict_join(QDict *dest, QDict *src, bool overwrite);
20 void qdict_extract_subqdict(QDict *src, QDict **dst, const char *start);
21 void qdict_array_split(QDict *src, QList **dst);
22 int qdict_array_entries(QDict *src, const char *subqdict);
23 QObject *qdict_crumple(const QDict *src, Error **errp);
24 void qdict_flatten(QDict *qdict);
26 typedef struct QDictRenames {
27 const char *from;
28 const char *to;
29 } QDictRenames;
30 bool qdict_rename_keys(QDict *qdict, const QDictRenames *renames, Error **errp);
32 Visitor *qobject_input_visitor_new_flat_confused(QDict *qdict,
33 Error **errp);
34 #endif