virtio-serial-port: Convert to QOM realize/unrealize

Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
Andreas Färber 2013-06-07 19:02:12 +02:00
parent 0399a3819b
commit 2ef66625f3
3 changed files with 43 additions and 44 deletions

View file

@ -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. */