summaryrefslogtreecommitdiffstats
path: root/include/chardev/char.h
diff options
context:
space:
mode:
authorAnton Nefedov2017-07-06 14:08:57 +0200
committerPaolo Bonzini2017-07-14 11:04:34 +0200
commit75b601602be0462acb4e0298e738df86b1de61a1 (patch)
treef9476e0d15cdee8fd69b55da340c1cb526dcf609 /include/chardev/char.h
parenttest-char: add hotswap test (diff)
downloadqemu-75b601602be0462acb4e0298e738df86b1de61a1.tar.gz
qemu-75b601602be0462acb4e0298e738df86b1de61a1.tar.xz
qemu-75b601602be0462acb4e0298e738df86b1de61a1.zip
hmp: add hmp analogue for qmp-chardev-change
Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <1499342940-56739-11-git-send-email-anton.nefedov@virtuozzo.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/chardev/char.h')
-rw-r--r--include/chardev/char.h10
1 files changed, 10 insertions, 0 deletions
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
@@ -81,6 +81,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:
*
* Create a new character backend from a URI.