OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcAppleBootPolicyLib.h
Go to the documentation of this file.
1
15#ifndef OC_APPLE_BOOT_POLICY_LIB_H
16#define OC_APPLE_BOOT_POLICY_LIB_H
17
19
29 IN BOOLEAN Reinstall
30 );
31
32EFI_STATUS
34 IN EFI_HANDLE Device,
35 IN EFI_FILE_PROTOCOL *Root,
36 IN CONST CHAR16 **PredefinedPaths,
37 IN UINTN NumPredefinedPaths,
38 OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath OPTIONAL,
39 IN CHAR16 *Prefix OPTIONAL
40 );
41
67EFI_STATUS
69 IN EFI_HANDLE Device,
70 IN CONST CHAR16 **PredefinedPaths,
71 IN UINTN NumPredefinedPaths,
72 IN OUT EFI_DEVICE_PATH_PROTOCOL **FilePath
73 );
74
95EFI_STATUS
97 IN EFI_HANDLE Device,
98 IN CONST CHAR16 **PredefinedPaths,
99 IN UINTN NumPredefinedPaths,
100 OUT EFI_DEVICE_PATH_PROTOCOL **FilePath
101 );
102
117EFI_STATUS
119 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,
120 OUT CHAR16 **BootPathName,
121 OUT EFI_SIMPLE_FILE_SYSTEM_PROTOCOL **FileSystem
122 );
123
136EFI_STATUS
138 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,
139 OUT CHAR16 **BootPathName
140 );
141
162EFI_STATUS
164 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,
165 IN CONST CHAR16 *PathName,
166 IN CONST CHAR16 **PredefinedPaths,
167 IN UINTN NumPredefinedPaths,
168 OUT CHAR16 **FullPathName,
169 OUT EFI_FILE_PROTOCOL **Root,
170 OUT EFI_HANDLE *DeviceHandle
171 );
172
173/*
174 Retrieves all valid APFS Recovery instances on the system.
175 The APFS Recovery instance associated with the APFS volume referenced by
176 Handle is moved to index 0, if present.
177
178 @param[in] Handle If given, the Recovery instance associated with
179 this handle is added first.
180 @param[out] Volumes A pointer the APFS Recovery instances info is
181 returned into.
182 @param[out] NumberOfEntries A pointer into which the number of entries in
183 Volumes is returned.
184
185 @retval EFI_SUCCESS The operation has been completed successfully.
186 @retval EFI_NOT_FOUND No valid APFS Recovery instance could be found.
187 @retval other An unexpected error has occured.
188*/
189EFI_STATUS
191 IN EFI_HANDLE Handle OPTIONAL,
192 OUT VOID **Volumes,
193 OUT UINTN *NumberOfEntries
194 );
195
196extern CONST CHAR16 *gAppleBootPolicyPredefinedPaths[];
197
201extern CONST UINTN gAppleBootPolicyNumPredefinedPaths;
202
207
208#endif // OC_APPLE_BOOT_POLICY_LIB_H
EFI_STATUS OcBootPolicyGetAllApfsRecoveryFilePath(IN EFI_HANDLE Handle OPTIONAL, OUT VOID **Volumes, OUT UINTN *NumberOfEntries)
APPLE_BOOT_POLICY_PROTOCOL * OcAppleBootPolicyInstallProtocol(IN BOOLEAN Reinstall)
CONST CHAR16 * gAppleBootPolicyPredefinedPaths[]
EFI_STATUS OcBootPolicyDevicePathToFilePath(IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, OUT CHAR16 **BootPathName)
CONST UINTN gAppleBootPolicyNumPredefinedPaths
EFI_STATUS OcGetBooterFromPredefinedPathList(IN EFI_HANDLE Device, IN EFI_FILE_PROTOCOL *Root, IN CONST CHAR16 **PredefinedPaths, IN UINTN NumPredefinedPaths, OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath OPTIONAL, IN CHAR16 *Prefix OPTIONAL)
EFI_STATUS OcBootPolicyGetBootFileEx(IN EFI_HANDLE Device, IN CONST CHAR16 **PredefinedPaths, IN UINTN NumPredefinedPaths, OUT EFI_DEVICE_PATH_PROTOCOL **FilePath)
EFI_STATUS OcBootPolicyDevicePathToDirPath(IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, OUT CHAR16 **BootPathName, OUT EFI_SIMPLE_FILE_SYSTEM_PROTOCOL **FileSystem)
EFI_STATUS OcBootPolicyGetApfsRecoveryFilePath(IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, IN CONST CHAR16 *PathName, IN CONST CHAR16 **PredefinedPaths, IN UINTN NumPredefinedPaths, OUT CHAR16 **FullPathName, OUT EFI_FILE_PROTOCOL **Root, OUT EFI_HANDLE *DeviceHandle)
EFI_STATUS OcBootPolicyGetBootFile(IN EFI_HANDLE Device, IN CONST CHAR16 **PredefinedPaths, IN UINTN NumPredefinedPaths, IN OUT EFI_DEVICE_PATH_PROTOCOL **FilePath)
CONST UINTN gAppleBootPolicyCoreNumPredefinedPaths
CHAR16 PathName[DMG_FILE_PATH_LEN]
DMG_FILEPATH_DEVICE_PATH FilePath
APPLE_EVENT_HANDLE Handle
Definition OcTypingLib.h:45