summary refs log tree commit diff stats
path: root/chardev/chardev-internal.h
diff options
context:
space:
mode:
authorRoman Penyaev <r.peniaev@gmail.com>2024-10-14 17:24:07 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2024-10-15 12:26:01 +0400
commit327993f180e22f7f18b8693bd2381b74b1f971a6 (patch)
treed9a67d37156a9bcdec3d2f4f0895b64e82608d42 /chardev/chardev-internal.h
parent005b6d511f23e0c2b69b4c7353defaa48c24853d (diff)
downloadfocaccia-qemu-327993f180e22f7f18b8693bd2381b74b1f971a6.tar.gz
focaccia-qemu-327993f180e22f7f18b8693bd2381b74b1f971a6.zip
chardev/mux: implement detach of frontends from mux
With bitset management now it becomes feasible to implement
the logic of detaching frontends from multiplexer.

Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: qemu-devel@nongnu.org
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20241014152408.427700-8-r.peniaev@gmail.com>
Diffstat (limited to 'chardev/chardev-internal.h')
-rw-r--r--chardev/chardev-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chardev/chardev-internal.h b/chardev/chardev-internal.h
index b89aada541..853807f3cb 100644
--- a/chardev/chardev-internal.h
+++ b/chardev/chardev-internal.h
@@ -61,6 +61,7 @@ DECLARE_INSTANCE_CHECKER(MuxChardev, MUX_CHARDEV,
 
 bool mux_chr_attach_frontend(MuxChardev *d, CharBackend *b,
                              unsigned int *tag, Error **errp);
+bool mux_chr_detach_frontend(MuxChardev *d, unsigned int tag);
 void mux_set_focus(Chardev *chr, unsigned int focus);
 void mux_chr_send_all_event(Chardev *chr, QEMUChrEvent event);