2021-02-04 15:04:31 +01:00
|
|
|
/*
|
|
|
|
* Volumes.h
|
|
|
|
*
|
|
|
|
* Created on: Feb 4, 2021
|
|
|
|
* Author: jief
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PLATFORM_VOLUMES_H_
|
|
|
|
#define PLATFORM_VOLUMES_H_
|
|
|
|
|
2021-04-28 20:30:34 +02:00
|
|
|
#include "Volume.h"
|
2021-02-04 15:04:31 +01:00
|
|
|
|
2021-02-06 18:16:46 +01:00
|
|
|
extern "C" {
|
|
|
|
//#include <Library/OcConfigurationLib.h>
|
|
|
|
#include <Guid/AppleApfsInfo.h>
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-04 15:04:31 +01:00
|
|
|
|
|
|
|
class VolumesArrayClass : public XObjArray<REFIT_VOLUME>
|
|
|
|
{
|
|
|
|
public:
|
2022-04-26 00:55:56 +02:00
|
|
|
REFIT_VOLUME* getVolumeWithApfsContainerUUIDAndFileSystemUUID(const EFI_GUID& ApfsContainerUUID, const EFI_GUID& ApfsFileSystemUUID);
|
2021-02-04 15:04:31 +01:00
|
|
|
/*
|
|
|
|
* Return : NULL if not found OR more than one partition with this role is found in this container
|
|
|
|
*/
|
2022-04-26 00:55:56 +02:00
|
|
|
REFIT_VOLUME* getVolumeWithApfsContainerUUIDAndRole(const EFI_GUID& ApfsContainerUUID, APPLE_APFS_VOLUME_ROLE roleMask);
|
2021-02-04 15:04:31 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
extern VolumesArrayClass Volumes;
|
|
|
|
extern REFIT_VOLUME *SelfVolume;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* PLATFORM_VOLUMES_H_ */
|