2020-04-16 09:15:26 +02:00
|
|
|
/*
|
|
|
|
* APFS.h
|
|
|
|
*
|
|
|
|
* Created on: 16 Apr 2020
|
|
|
|
* Author: jief
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PLATFORM_APFS_H_
|
|
|
|
#define PLATFORM_APFS_H_
|
|
|
|
|
2021-02-06 18:16:46 +01:00
|
|
|
extern "C" {
|
|
|
|
#include <Protocol/DevicePath.h>
|
|
|
|
}
|
2020-04-16 09:15:26 +02:00
|
|
|
|
2020-08-07 10:23:46 +02:00
|
|
|
constexpr LString8 ApfsSignatureUUID = "BE74FCF7-0B7C-49F3-9147-01F4042E6842";
|
2020-04-16 09:15:26 +02:00
|
|
|
|
2020-08-07 10:23:46 +02:00
|
|
|
/*
|
|
|
|
* Function for obtaining unique part id from APFS partition
|
|
|
|
* IN: DevicePath
|
|
|
|
* OUT: EFI_GUID
|
|
|
|
* returns null if it is not APFS part
|
|
|
|
*/
|
2020-09-23 15:47:47 +02:00
|
|
|
EFI_GUID* APFSPartitionUUIDExtract(
|
2020-09-28 17:57:50 +02:00
|
|
|
const EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
2020-08-07 10:23:46 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
XString8 APFSPartitionUUIDExtractAsXString8(
|
2020-09-28 17:57:50 +02:00
|
|
|
const EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
2020-04-16 09:15:26 +02:00
|
|
|
);
|
|
|
|
|
2020-08-07 10:23:46 +02:00
|
|
|
//XStringW APFSPartitionUUIDExtractAsXStringW(
|
|
|
|
// IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
|
|
|
// );
|
2020-04-16 09:15:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* PLATFORM_APFS_H_ */
|