fc5c27b
>From c86147be45fe6cc38efa932f9587774d626a881b Mon Sep 17 00:00:00 2001
fc5c27b
From: Hans de Goede <hdegoede@redhat.com>
fc5c27b
Date: Thu, 11 Aug 2011 12:16:11 +0200
fc5c27b
Subject: [PATCH 24/28] qemu-char: make qemu_chr_event public
fc5c27b
fc5c27b
Make qemu_chr_event public so that it can be used by chardev code
fc5c27b
which lives outside of qemu-char.c
fc5c27b
fc5c27b
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
fc5c27b
---
fc5c27b
 qemu-char.c |    2 +-
fc5c27b
 qemu-char.h |    1 +
fc5c27b
 2 files changed, 2 insertions(+), 1 deletions(-)
fc5c27b
fc5c27b
diff --git a/qemu-char.c b/qemu-char.c
fc5c27b
index 8d39500..5d5a6d5 100644
fc5c27b
--- a/qemu-char.c
fc5c27b
+++ b/qemu-char.c
fc5c27b
@@ -119,7 +119,7 @@ static void char_write_unblocked(void *opaque)
fc5c27b
     chr->chr_write_unblocked(chr->handler_opaque);
fc5c27b
 }
fc5c27b
 
fc5c27b
-static void qemu_chr_event(CharDriverState *s, int event)
fc5c27b
+void qemu_chr_event(CharDriverState *s, int event)
fc5c27b
 {
fc5c27b
     /* Keep track if the char device is open */
fc5c27b
     switch (event) {
fc5c27b
diff --git a/qemu-char.h b/qemu-char.h
fc5c27b
index 68e7b5b..77ad62d 100644
fc5c27b
--- a/qemu-char.h
fc5c27b
+++ b/qemu-char.h
fc5c27b
@@ -107,6 +107,7 @@ int qemu_chr_ioctl(CharDriverState *s, int cmd, void *arg);
fc5c27b
 void qemu_chr_generic_open(CharDriverState *s);
fc5c27b
 int qemu_chr_can_read(CharDriverState *s);
fc5c27b
 void qemu_chr_read(CharDriverState *s, uint8_t *buf, int len);
fc5c27b
+void qemu_chr_event(CharDriverState *s, int event);
fc5c27b
 int qemu_chr_get_msgfd(CharDriverState *s);
fc5c27b
 void qemu_chr_accept_input(CharDriverState *s);
fc5c27b
 int qemu_chr_add_client(CharDriverState *s, int fd);
fc5c27b
-- 
fc5c27b
1.7.5.1
fc5c27b