mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-26 12:05:36 +01:00
28 lines
530 B
C
28 lines
530 B
C
/*
|
|
* Nvram.h
|
|
*
|
|
* Created on: 16 Apr 2020
|
|
* Author: jief
|
|
*/
|
|
|
|
#ifndef PLATFORM_HIBERNATE_H_
|
|
#define PLATFORM_HIBERNATE_H_
|
|
|
|
/** Returns true if given macOS on given volume is hibernated
|
|
* (/private/var/vm/sleepimage exists and it's modification time is close to volume modification time).
|
|
*/
|
|
XBool
|
|
IsOsxHibernated (
|
|
IN LOADER_ENTRY *Entry
|
|
);
|
|
|
|
|
|
/** Prepares nvram vars needed for boot.efi to wake from hibernation. */
|
|
XBool
|
|
PrepareHibernation (
|
|
IN REFIT_VOLUME *Volume
|
|
);
|
|
|
|
|
|
#endif /* PLATFORM_HIBERNATE_H_ */
|