From 75b601602be0462acb4e0298e738df86b1de61a1 Mon Sep 17 00:00:00 2001 From: Anton Nefedov Date: Thu, 6 Jul 2017 15:08:57 +0300 Subject: hmp: add hmp analogue for qmp-chardev-change Signed-off-by: Anton Nefedov Reviewed-by: Vladimir Sementsov-Ogievskiy Acked-by: Dr. David Alan Gilbert Message-Id: <1499342940-56739-11-git-send-email-anton.nefedov@virtuozzo.com> Reviewed-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- include/chardev/char.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/chardev/char.h') diff --git a/include/chardev/char.h b/include/chardev/char.h index 22fd734999..1604ea9143 100644 --- a/include/chardev/char.h +++ b/include/chardev/char.h @@ -80,6 +80,16 @@ Chardev *qemu_chr_new_from_opts(QemuOpts *opts, */ void qemu_chr_parse_common(QemuOpts *opts, ChardevCommon *backend); +/** + * @qemu_chr_parse_opts: + * + * Parse the options to the ChardevBackend struct. + * + * Returns: a new backend or NULL on error + */ +ChardevBackend *qemu_chr_parse_opts(QemuOpts *opts, + Error **errp); + /** * @qemu_chr_new: * -- cgit v1.2.3-55-g7522