diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-12-10 17:15:53 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-12 07:59:45 -0600 |
commit | cd4dde36ae8e7bd8e02839533c5708011bf994cf (patch) | |
tree | 3067b3fea14f46b26941d175443af368564835b8 /qdict.h | |
parent | 2a01000f7df5faeeb06742b8f7afabf9e8a9d2b6 (diff) | |
download | qemu-cd4dde36ae8e7bd8e02839533c5708011bf994cf.tar.gz qemu-cd4dde36ae8e7bd8e02839533c5708011bf994cf.tar.bz2 qemu-cd4dde36ae8e7bd8e02839533c5708011bf994cf.zip |
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>
Diffstat (limited to 'qdict.h')
-rw-r--r-- | qdict.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |