]> xenbits.xensource.com Git - libvirt.git/commit
virsh: support remaining domain events
authorEric Blake <eblake@redhat.com>
Mon, 24 Feb 2014 21:46:29 +0000 (14:46 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 28 Feb 2014 20:54:04 +0000 (13:54 -0700)
commitbb4a9a527d6147e51546abb546488bc74c59bb71
tree36717efcaab3e403e037874491646f9fc6d0ebeb
parent91f396b33b026fe0810e4acdf314ad5af7dc20af
virsh: support remaining domain events

Earlier, I added 'virsh event' for lifecycle events, to get the
concept approved; this patch finishes the support for all other
events, although the user still has to register for one event
type at a time.  A future patch may add an --all parameter to
make it possible to register for all events through a single
call.

* tools/virsh-domain.c (vshDomainEventWatchdogToString)
(vshDomainEventIOErrorToString, vshGraphicsPhaseToString)
(vshGraphicsAddressToString, vshDomainBlockJobStatusToString)
(vshDomainEventDiskChangeToString)
(vshDomainEventTrayChangeToString, vshEventGenericPrint)
(vshEventRTCChangePrint, vshEventWatchdogPrint)
(vshEventIOErrorPrint, vshEventGraphicsPrint)
(vshEventIOErrorReasonPrint, vshEventBlockJobPrint)
(vshEventDiskChangePrint, vshEventTrayChangePrint)
(vshEventPMChangePrint, vshEventBalloonChangePrint)
(vshEventDeviceRemovedPrint): New helper routines.
(cmdEvent): Support full array of event callbacks.

Signed-off-by: Eric Blake <eblake@redhat.com>
tools/virsh-domain.c