From d654f34ec8bf006f9b57a067e0f272ab94ee8e06 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Tue, 5 Mar 2013 23:21:28 +0530 Subject: qemu-char: make char drivers dynamically registerable Signed-off-by: Anthony Liguori Signed-off-by: Amit Shah Message-id: 0ff4f5f2b8b7afdb85a0c241403ad73f472f0b81.1362505276.git.amit.shah@redhat.com Signed-off-by: Anthony Liguori --- include/char/char.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/char/char.h b/include/char/char.h index e8b781c..2e24270 100644 --- a/include/char/char.h +++ b/include/char/char.h @@ -244,6 +244,8 @@ CharDriverState *qemu_chr_find(const char *name); QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename); +void register_char_driver(const char *name, CharDriverState *(*open)(QemuOpts *)); + /* add an eventfd to the qemu devices that are polled */ CharDriverState *qemu_chr_open_eventfd(int eventfd); -- cgit v1.1