aboutsummaryrefslogtreecommitdiff
path: root/qemu-char.h
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2009-08-11 21:27:48 +0530
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-24 08:21:42 -0500
commit793cbfb5d1e879a2d5d67eaa36f67a3f21ef52a5 (patch)
treeeee03a61f8b9f701c12872fc17de9d08a51f0b43 /qemu-char.h
parent0b5c1ce8467384327b80a55218d3e57f48985990 (diff)
char: Emit 'CLOSED' events on char device close
Notify users of the char interface whenever the file / connection is closed. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-char.h')
-rw-r--r--qemu-char.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-char.h b/qemu-char.h
index 77d4edaae3..df620bc7db 100644
--- a/qemu-char.h
+++ b/qemu-char.h
@@ -11,6 +11,7 @@
#define CHR_EVENT_RESET 2 /* new connection established */
#define CHR_EVENT_MUX_IN 3 /* mux-focus was set to this terminal */
#define CHR_EVENT_MUX_OUT 4 /* mux-focus will move on */
+#define CHR_EVENT_CLOSED 5 /* connection closed */
#define CHR_IOCTL_SERIAL_SET_PARAMS 1