mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
virtio-serial-port: Convert to QOM realize/unrealize
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
0399a3819b
commit
2ef66625f3
3 changed files with 43 additions and 44 deletions
|
@ -81,15 +81,15 @@ typedef struct VirtIOSerialPortClass {
|
|||
bool is_console;
|
||||
|
||||
/*
|
||||
* The per-port (or per-app) init function that's called when a
|
||||
* The per-port (or per-app) realize function that's called when a
|
||||
* new device is found on the bus.
|
||||
*/
|
||||
int (*init)(VirtIOSerialPort *port);
|
||||
DeviceRealize realize;
|
||||
/*
|
||||
* Per-port exit function that's called when a port gets
|
||||
* Per-port unrealize function that's called when a port gets
|
||||
* hot-unplugged or removed.
|
||||
*/
|
||||
int (*exit)(VirtIOSerialPort *port);
|
||||
DeviceUnrealize unrealize;
|
||||
|
||||
/* Callbacks for guest events */
|
||||
/* Guest opened/closed device. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue