mirror of https://github.com/xqemu/xqemu.git
char: use an enum for CHR_EVENT
This may help to catch unhandled cases, and avoid having to maintain numbering. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20161022100951.19562-3-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
8cd35662af
commit
8c260cb13c
|
@ -13,11 +13,13 @@
|
||||||
|
|
||||||
/* character device */
|
/* character device */
|
||||||
|
|
||||||
#define CHR_EVENT_BREAK 0 /* serial break char */
|
typedef enum {
|
||||||
#define CHR_EVENT_OPENED 2 /* new connection established */
|
CHR_EVENT_BREAK, /* serial break char */
|
||||||
#define CHR_EVENT_MUX_IN 3 /* mux-focus was set to this terminal */
|
CHR_EVENT_OPENED, /* new connection established */
|
||||||
#define CHR_EVENT_MUX_OUT 4 /* mux-focus will move on */
|
CHR_EVENT_MUX_IN, /* mux-focus was set to this terminal */
|
||||||
#define CHR_EVENT_CLOSED 5 /* connection closed */
|
CHR_EVENT_MUX_OUT, /* mux-focus will move on */
|
||||||
|
CHR_EVENT_CLOSED /* connection closed */
|
||||||
|
} QEMUChrEvent;
|
||||||
|
|
||||||
|
|
||||||
#define CHR_IOCTL_SERIAL_SET_PARAMS 1
|
#define CHR_IOCTL_SERIAL_SET_PARAMS 1
|
||||||
|
|
Loading…
Reference in New Issue