Revision d61b0c9a
b/include/sysemu/char.h | ||
---|---|---|
69 | 69 |
void (*chr_accept_input)(struct CharDriverState *chr); |
70 | 70 |
void (*chr_set_echo)(struct CharDriverState *chr, bool echo); |
71 | 71 |
void (*chr_set_fe_open)(struct CharDriverState *chr, int fe_open); |
72 |
void (*chr_fe_event)(struct CharDriverState *chr, int event); |
|
72 | 73 |
void *opaque; |
73 | 74 |
char *label; |
74 | 75 |
char *filename; |
... | ... | |
138 | 139 |
void qemu_chr_fe_set_open(struct CharDriverState *chr, int fe_open); |
139 | 140 |
|
140 | 141 |
/** |
142 |
* @qemu_chr_fe_event: |
|
143 |
* |
|
144 |
* Send an event from the front end to the back end. |
|
145 |
* |
|
146 |
* @event the event to send |
|
147 |
*/ |
|
148 |
void qemu_chr_fe_event(CharDriverState *s, int event); |
|
149 |
|
|
150 |
/** |
|
141 | 151 |
* @qemu_chr_fe_printf: |
142 | 152 |
* |
143 | 153 |
* Write to a character backend using a printf style interface. |
b/qemu-char.c | ||
---|---|---|
3353 | 3353 |
} |
3354 | 3354 |
} |
3355 | 3355 |
|
3356 |
void qemu_chr_fe_event(struct CharDriverState *chr, int event) |
|
3357 |
{ |
|
3358 |
if (chr->chr_fe_event) { |
|
3359 |
chr->chr_fe_event(chr, event); |
|
3360 |
} |
|
3361 |
} |
|
3362 |
|
|
3356 | 3363 |
int qemu_chr_fe_add_watch(CharDriverState *s, GIOCondition cond, |
3357 | 3364 |
GIOFunc func, void *user_data) |
3358 | 3365 |
{ |
Also available in: Unified diff