mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-17 15:18:06 +01:00
975ac8f4fb
Improve unicode_conversions. Move strlen declaration to string.h.
38 lines
722 B
C++
38 lines
722 B
C++
/*
|
|
* APFS.h
|
|
*
|
|
* Created on: 16 Apr 2020
|
|
* Author: jief
|
|
*/
|
|
|
|
#ifndef PLATFORM_APFS_H_
|
|
#define PLATFORM_APFS_H_
|
|
|
|
extern "C" {
|
|
#include <Protocol/DevicePath.h>
|
|
}
|
|
|
|
constexpr LString8 ApfsSignatureUUID = "BE74FCF7-0B7C-49F3-9147-01F4042E6842"_XS8;
|
|
|
|
/*
|
|
* Function for obtaining unique part id from APFS partition
|
|
* IN: DevicePath
|
|
* OUT: EFI_GUID
|
|
* returns null if it is not APFS part
|
|
*/
|
|
EFI_GUID* APFSPartitionUUIDExtract(
|
|
const EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
|
);
|
|
|
|
|
|
XString8 APFSPartitionUUIDExtractAsXString8(
|
|
const EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
|
);
|
|
|
|
//XStringW APFSPartitionUUIDExtractAsXStringW(
|
|
// IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
|
// );
|
|
|
|
|
|
#endif /* PLATFORM_APFS_H_ */
|