mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
QDict: Introduce qdict_get_qbool()
This is a helper function that does type checking before retrieving a QBool from the dictionary. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
2a01000f7d
commit
cd4dde36ae
3 changed files with 17 additions and 1 deletions
1
qdict.h
1
qdict.h
|
@ -37,6 +37,7 @@ void qdict_iter(const QDict *qdict,
|
|||
|
||||
/* High level helpers */
|
||||
int64_t qdict_get_int(const QDict *qdict, const char *key);
|
||||
int qdict_get_bool(const QDict *qdict, const char *key);
|
||||
const char *qdict_get_str(const QDict *qdict, const char *key);
|
||||
int64_t qdict_get_try_int(const QDict *qdict, const char *key,
|
||||
int64_t err_value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue