diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-12-12 15:06:14 +0300 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-01-31 23:31:20 +0400 |
commit | df85a78bf83d85627de27f492e78e73bbbd3df4a (patch) | |
tree | 633cff7180767a4932743b36b2211c1cb5d4ed96 /include | |
parent | 247c92af2beaee26ad8fe5fd7cd04220681f156e (diff) |
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')
-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) \ |