diff options
author | Osier Yang <jyang@redhat.com> | 2012-03-23 21:44:50 +0800 |
---|---|---|
committer | Osier Yang <jyang@redhat.com> | 2012-03-23 23:10:26 +0800 |
commit | 4b6a7b3fce2e30e600db5bee484badfe25f8e3f2 (patch) | |
tree | 59f5dbf3cb456a2970046dfe954dbc5dea83beb8 /tests | |
parent | 65ef8171496537b49fcdd0a5b833d61a8ad23351 (diff) | |
download | libvirt-python-split-4b6a7b3fce2e30e600db5bee484badfe25f8e3f2.tar.gz libvirt-python-split-4b6a7b3fce2e30e600db5bee484badfe25f8e3f2.tar.xz libvirt-python-split-4b6a7b3fce2e30e600db5bee484badfe25f8e3f2.zip |
Add support for event tray moved of removable disks
This patch introduces a new event type for the QMP event
DEVICE_TRAY_MOVED, which occurs when the tray of a removable
disk is moved (i.e opened or closed):
VIR_DOMAIN_EVENT_ID_TRAY_CHANGE
The event's data includes the device alias and the reason
for tray status' changing, which indicates why the tray
status was changed. Thus the callback definition for the event
is:
enum {
VIR_DOMAIN_EVENT_TRAY_CHANGE_OPEN = 0,
VIR_DOMAIN_EVENT_TRAY_CHANGE_CLOSE,
\#ifdef VIR_ENUM_SENTINELS
VIR_DOMAIN_EVENT_TRAY_CHANGE_LAST
\#endif
} virDomainEventTrayChangeReason;
typedef void
(*virConnectDomainEventTrayChangeCallback)(virConnectPtr conn,
virDomainPtr dom,
const char *devAlias,
int reason,
void *opaque);
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions