Add VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED event

This commit is contained in:
Jiri Denemark
2013-06-19 15:27:29 +02:00
parent d077cda4e9
commit 4421e257dd
10 changed files with 233 additions and 20 deletions

View File

@@ -179,6 +179,15 @@
cb(self, virDomain(self, _obj=dom), reason, opaque)
return 0
def _dispatchDomainEventDeviceRemovedCallback(self, dom, devAlias, cbData):
"""Dispatches event to python user domain device removed event callbacks
"""
cb = cbData["cb"]
opaque = cbData["opaque"]
cb(self, virDomain(self, _obj=dom), devAlias, opaque)
return 0
def domainEventDeregisterAny(self, callbackID):
"""Removes a Domain Event Callback. De-registering for a
domain callback will disable delivery of this event type """