summaryrefslogtreecommitdiffstats
path: root/include/sysemu/char.h
diff options
context:
space:
mode:
authorEric Blake2016-02-20 01:19:31 +0100
committerPaolo Bonzini2016-02-25 16:11:29 +0100
commit21a933ea33c820515f331c162c9f7053ca6f4129 (patch)
tree97336805256251c1836cc3805ac41ac9101ba97b /include/sysemu/char.h
parentmemory: Remove unreachable return statement (diff)
downloadqemu-21a933ea33c820515f331c162c9f7053ca6f4129.tar.gz
qemu-21a933ea33c820515f331c162c9f7053ca6f4129.tar.xz
qemu-21a933ea33c820515f331c162c9f7053ca6f4129.zip
chardev: Properly initialize ChardevCommon components
Commit d0d7708b forgot to parse logging for spice chardevs and virtual consoles. This requires making qemu_chr_parse_common() non-static. While at it, use a temporary variable to make the code shorter, as well as reduce the churn when a later patch alters the layout of simple unions. Signed-off-by: Eric Blake <eblake@redhat.com> CC: Daniel P. Berrange <berrange@redhat.com> Message-Id: <1455927587-28033-2-git-send-email-eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/sysemu/char.h')
-rw-r--r--include/sysemu/char.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sysemu/char.h b/include/sysemu/char.h
index e035d1cbda..e46884f367 100644
--- a/include/sysemu/char.h
+++ b/include/sysemu/char.h
@@ -115,6 +115,16 @@ CharDriverState *qemu_chr_new_from_opts(QemuOpts *opts,
Error **errp);
/**
+ * @qemu_chr_parse_common:
+ *
+ * Parse the common options available to all character backends.
+ *
+ * @opts the options that still need parsing
+ * @backend a new backend
+ */
+void qemu_chr_parse_common(QemuOpts *opts, ChardevCommon *backend);
+
+/**
* @qemu_chr_new:
*
* Create a new character backend from a URI.