mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
Add virDomainEventRebootNew
This will be used in the ESX driver event handling.
This commit is contained in:
parent
90d761eeb2
commit
14a961ca73
@ -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,
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -377,6 +377,7 @@ virDomainEventQueuePop;
|
|||||||
virDomainEventQueuePush;
|
virDomainEventQueuePush;
|
||||||
virDomainEventRTCChangeNewFromDom;
|
virDomainEventRTCChangeNewFromDom;
|
||||||
virDomainEventRTCChangeNewFromObj;
|
virDomainEventRTCChangeNewFromObj;
|
||||||
|
virDomainEventRebootNew;
|
||||||
virDomainEventRebootNewFromDom;
|
virDomainEventRebootNewFromDom;
|
||||||
virDomainEventRebootNewFromObj;
|
virDomainEventRebootNewFromObj;
|
||||||
virDomainEventWatchdogNewFromDom;
|
virDomainEventWatchdogNewFromDom;
|
||||||
|
Loading…
Reference in New Issue
Block a user