diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2012-01-26 19:05:46 +0100 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2012-01-28 10:20:46 +0100 |
commit | 8f8b08026335473bd670bef3d81b78cc27d5833d (patch) | |
tree | 5b3863ddd275e0d8b3d444bfd542df45a0c53c8a /src/driver.h | |
parent | resize: implement remote protocol for virStorageVolResize() (diff) | |
download | libvirt-8f8b08026335473bd670bef3d81b78cc27d5833d.tar.gz libvirt-8f8b08026335473bd670bef3d81b78cc27d5833d.tar.bz2 libvirt-8f8b08026335473bd670bef3d81b78cc27d5833d.zip |
Introduce virDomainPMSuspendForDuration API
This API allows a domain to be put into one of S# ACPI states.
Currently, S3 and S4 are supported. These states are shared
with virNodeSuspendForDuration.
However, for now we don't support any duration other than zero.
The same apply for flags.
Diffstat (limited to 'src/driver.h')
-rw-r--r-- | src/driver.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/driver.h b/src/driver.h index 485b578ad..faeff34cd 100644 --- a/src/driver.h +++ b/src/driver.h @@ -120,6 +120,11 @@ typedef int typedef int (*virDrvDomainResume) (virDomainPtr domain); typedef int + (*virDrvDomainPMSuspendForDuration) (virDomainPtr, + unsigned int target, + unsigned long long duration, + unsigned int flags); +typedef int (*virDrvDomainShutdown) (virDomainPtr domain); typedef int (*virDrvDomainReboot) (virDomainPtr domain, @@ -831,6 +836,7 @@ struct _virDriver { virDrvDomainLookupByUUID domainLookupByUUID; virDrvDomainLookupByName domainLookupByName; virDrvDomainSuspend domainSuspend; + virDrvDomainPMSuspendForDuration domainPMSuspendForDuration; virDrvDomainResume domainResume; virDrvDomainShutdown domainShutdown; virDrvDomainShutdownFlags domainShutdownFlags; |