Add virDomainEventRebootNew

This will be used in the ESX driver event handling.
This commit is contained in:
Matthias Bolte 2011-04-25 13:35:23 +02:00
parent 90d761eeb2
commit 14a961ca73
3 changed files with 10 additions and 0 deletions

View File

@ -572,11 +572,19 @@ virDomainEventPtr virDomainEventNewFromDef(virDomainDefPtr def, int type, int de
return virDomainEventNew(def->id, def->name, def->uuid, type, detail); return virDomainEventNew(def->id, def->name, def->uuid, type, detail);
} }
virDomainEventPtr virDomainEventRebootNew(int id, const char *name,
const unsigned char *uuid)
{
return virDomainEventNewInternal(VIR_DOMAIN_EVENT_ID_REBOOT,
id, name, uuid);
}
virDomainEventPtr virDomainEventRebootNewFromDom(virDomainPtr dom) virDomainEventPtr virDomainEventRebootNewFromDom(virDomainPtr dom)
{ {
return virDomainEventNewInternal(VIR_DOMAIN_EVENT_ID_REBOOT, return virDomainEventNewInternal(VIR_DOMAIN_EVENT_ID_REBOOT,
dom->id, dom->name, dom->uuid); dom->id, dom->name, dom->uuid);
} }
virDomainEventPtr virDomainEventRebootNewFromObj(virDomainObjPtr obj) virDomainEventPtr virDomainEventRebootNewFromObj(virDomainObjPtr obj)
{ {
return virDomainEventNewInternal(VIR_DOMAIN_EVENT_ID_REBOOT, return virDomainEventNewInternal(VIR_DOMAIN_EVENT_ID_REBOOT,

View File

@ -112,6 +112,7 @@ virDomainEventPtr virDomainEventNewFromDom(virDomainPtr dom, int type, int detai
virDomainEventPtr virDomainEventNewFromObj(virDomainObjPtr obj, int type, int detail); virDomainEventPtr virDomainEventNewFromObj(virDomainObjPtr obj, int type, int detail);
virDomainEventPtr virDomainEventNewFromDef(virDomainDefPtr def, int type, int detail); virDomainEventPtr virDomainEventNewFromDef(virDomainDefPtr def, int type, int detail);
virDomainEventPtr virDomainEventRebootNew(int id, const char *name, const unsigned char *uuid);
virDomainEventPtr virDomainEventRebootNewFromDom(virDomainPtr dom); virDomainEventPtr virDomainEventRebootNewFromDom(virDomainPtr dom);
virDomainEventPtr virDomainEventRebootNewFromObj(virDomainObjPtr obj); virDomainEventPtr virDomainEventRebootNewFromObj(virDomainObjPtr obj);

View File

@ -377,6 +377,7 @@ virDomainEventQueuePop;
virDomainEventQueuePush; virDomainEventQueuePush;
virDomainEventRTCChangeNewFromDom; virDomainEventRTCChangeNewFromDom;
virDomainEventRTCChangeNewFromObj; virDomainEventRTCChangeNewFromObj;
virDomainEventRebootNew;
virDomainEventRebootNewFromDom; virDomainEventRebootNewFromDom;
virDomainEventRebootNewFromObj; virDomainEventRebootNewFromObj;
virDomainEventWatchdogNewFromDom; virDomainEventWatchdogNewFromDom;