diff options
author | Marc-André Lureau | 2016-12-12 13:06:14 +0100 |
---|---|---|
committer | Marc-André Lureau | 2017-01-31 20:31:20 +0100 |
commit | df85a78bf83d85627de27f492e78e73bbbd3df4a (patch) | |
tree | 633cff7180767a4932743b36b2211c1cb5d4ed96 /include/sysemu/char.h | |
parent | char: move null chardev to its own file (diff) | |
download | qemu-df85a78bf83d85627de27f492e78e73bbbd3df4a.tar.gz qemu-df85a78bf83d85627de27f492e78e73bbbd3df4a.tar.xz qemu-df85a78bf83d85627de27f492e78e73bbbd3df4a.zip |
char: move mux to its own file
A mechanical move, except that qemu_chr_write_all() needs to be declared
in char.h header to be used from chardev unit files.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include/sysemu/char.h')
-rw-r--r-- | include/sysemu/char.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/sysemu/char.h b/include/sysemu/char.h index 31229deaca..1e1f5c7b2b 100644 --- a/include/sysemu/char.h +++ b/include/sysemu/char.h @@ -441,6 +441,7 @@ bool qemu_chr_has_feature(Chardev *chr, void qemu_chr_set_feature(Chardev *chr, ChardevFeature feature); QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename); +int qemu_chr_write_all(Chardev *s, const uint8_t *buf, int len); #define TYPE_CHARDEV "chardev" #define CHARDEV(obj) OBJECT_CHECK(Chardev, (obj), TYPE_CHARDEV) @@ -463,8 +464,6 @@ QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename); #define TYPE_CHARDEV_SOCKET "chardev-socket" #define TYPE_CHARDEV_UDP "chardev-udp" -#define CHARDEV_IS_MUX(chr) \ - object_dynamic_cast(OBJECT(chr), TYPE_CHARDEV_MUX) #define CHARDEV_IS_RINGBUF(chr) \ object_dynamic_cast(OBJECT(chr), TYPE_CHARDEV_RINGBUF) #define CHARDEV_IS_PTY(chr) \ |