diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-04-20 17:26:06 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-04-21 17:03:51 +0400 |
commit | 9ca9c893b617c0c182f16331021c5ff8c64c5c00 (patch) | |
tree | 75996f4442dce66597a069c7d7cf8a0d4cbacb38 /include/qemu/keyval.h | |
parent | 282468c7c4c84ce497e51d046f545badc320c154 (diff) | |
download | qemu-9ca9c893b617c0c182f16331021c5ff8c64c5c00.zip qemu-9ca9c893b617c0c182f16331021c5ff8c64c5c00.tar.gz qemu-9ca9c893b617c0c182f16331021c5ff8c64c5c00.tar.bz2 |
include: add qemu/keyval.h
Do not require the whole option machinery to handle keyval, as it is
used by QAPI alone, without the option API. And match the associated
unit name.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220420132624.2439741-24-marcandre.lureau@redhat.com>
Diffstat (limited to 'include/qemu/keyval.h')
-rw-r--r-- | include/qemu/keyval.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/qemu/keyval.h b/include/qemu/keyval.h new file mode 100644 index 0000000..2d26328 --- /dev/null +++ b/include/qemu/keyval.h @@ -0,0 +1,14 @@ +/* + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + */ +#ifndef KEYVAL_H_ +#define KEYVAL_H_ + +QDict *keyval_parse_into(QDict *qdict, const char *params, const char *implied_key, + bool *p_help, Error **errp); +QDict *keyval_parse(const char *params, const char *implied_key, + bool *help, Error **errp); +void keyval_merge(QDict *old, const QDict *new, Error **errp); + +#endif /* KEYVAL_H_ */ |