mirror of
https://github.com/qemu/qemu.git
synced 2024-11-27 05:43:47 +08:00
6e1db57b2a
The only way for chardev drivers to communicate an error was to return a NULL pointer, which resulted in an error message that said _that_ something went wrong, but not _why_. This patch changes the interface to return 0/-errno and updates qemu_chr_open_opts to use strerror to display a more helpful error message. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
3 lines
83 B
C
3 lines
83 B
C
/* msmouse.c */
|
|
int qemu_chr_open_msmouse(QemuOpts *opts, CharDriverState **_chr);
|