2020-04-16 09:15:26 +02:00
|
|
|
/*
|
|
|
|
* Nvram.h
|
|
|
|
*
|
|
|
|
* Created on: 16 Apr 2020
|
|
|
|
* Author: jief
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PLATFORM_HIBERNATE_H_
|
|
|
|
#define PLATFORM_HIBERNATE_H_
|
2020-02-29 08:30:21 +01:00
|
|
|
|
2021-09-28 10:28:45 +02:00
|
|
|
/** Returns true if given macOS on given volume is hibernated
|
2020-02-29 08:30:21 +01:00
|
|
|
* (/private/var/vm/sleepimage exists and it's modification time is close to volume modification time).
|
|
|
|
*/
|
2021-09-28 10:28:45 +02:00
|
|
|
XBool
|
2020-02-29 08:30:21 +01:00
|
|
|
IsOsxHibernated (
|
|
|
|
IN LOADER_ENTRY *Entry
|
|
|
|
);
|
2020-04-16 09:15:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
/** Prepares nvram vars needed for boot.efi to wake from hibernation. */
|
2021-09-28 10:28:45 +02:00
|
|
|
XBool
|
2020-04-16 09:15:26 +02:00
|
|
|
PrepareHibernation (
|
|
|
|
IN REFIT_VOLUME *Volume
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* PLATFORM_HIBERNATE_H_ */
|