OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
AppleSingleFile.h File Reference
#include <Guid/FileInfo.h>

Go to the source code of this file.

Data Structures

struct  APPLE_SINGLE_FILE_INFO
 
struct  APPLE_SINGLE_FILE_PROTOCOL
 

Macros

#define APPLE_SINGLE_FILE_PROTOCOL_GUID
 
#define APPLE_SINGLE_FILE_SIGNATURE   0x78534653U
 
#define APPLE_SINGLE_FILE_VERSION   1U
 
#define APPLE_SINGLE_FILE_DEFAULT_FILESYSTEM_NAME   L"Single File System"
 
#define APPLE_SINGLE_FILE_DEFAULT_FILE_NAME   L"SomeLonelyFile"
 

Typedefs

typedef EFI_STATUS(EFIAPI * APPLE_SINGLE_FILE_CREATE) (IN EFI_HANDLE Handle, OUT APPLE_SINGLE_FILE_INFO *FileInfo OPTIONAL)
 

Variables

EFI_GUID gAppleSingleFileProtocolGuid
 

Detailed Description

Apple Single File protocol.

Copyright (C) 2019, vit9696. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php.

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file AppleSingleFile.h.

Macro Definition Documentation

◆ APPLE_SINGLE_FILE_DEFAULT_FILE_NAME

#define APPLE_SINGLE_FILE_DEFAULT_FILE_NAME   L"SomeLonelyFile"

Default file name when FileInfo is not provided at creation.

Definition at line 47 of file AppleSingleFile.h.

◆ APPLE_SINGLE_FILE_DEFAULT_FILESYSTEM_NAME

#define APPLE_SINGLE_FILE_DEFAULT_FILESYSTEM_NAME   L"Single File System"

Default file system name when FileInfo is not provided at creation.

Definition at line 42 of file AppleSingleFile.h.

◆ APPLE_SINGLE_FILE_PROTOCOL_GUID

#define APPLE_SINGLE_FILE_PROTOCOL_GUID
Value:
{ 0x7542A2BB, 0xD260, 0x4CC2, \
{ 0x89, 0x6E, 0xD6, 0x13, 0xCD, 0x51, 0x50, 0x69 } }

Apple Single File protocol GUID. 7542A2BB-D260-4CC2-896E-D613CD515069

Definition at line 24 of file AppleSingleFile.h.

◆ APPLE_SINGLE_FILE_SIGNATURE

#define APPLE_SINGLE_FILE_SIGNATURE   0x78534653U

Apple single file protocol signature, "SFSx".

Definition at line 31 of file AppleSingleFile.h.

◆ APPLE_SINGLE_FILE_VERSION

#define APPLE_SINGLE_FILE_VERSION   1U

Apple single file protocol version. Versions other than 1 take EFI_FILE_INFO as a FileInfo argument.

Definition at line 37 of file AppleSingleFile.h.

Typedef Documentation

◆ APPLE_SINGLE_FILE_CREATE

typedef EFI_STATUS(EFIAPI * APPLE_SINGLE_FILE_CREATE) (IN EFI_HANDLE Handle, OUT APPLE_SINGLE_FILE_INFO *FileInfo OPTIONAL)

Create single file system on a block i/o device, usually RAM disk. Single file system may hold at most 1 readable and writeable file.

Parameters
[in]HandleDevice handle.
[out]FileInfoFile information, optional.
Return values
EFI_NO_MEDIANo Block I/O media.
EFI_NOT_FOUNDMissing Block I/O protocol.
EFI_SUCCESSWritten single file instance succesfully.

Definition at line 83 of file AppleSingleFile.h.

Variable Documentation

◆ gAppleSingleFileProtocolGuid

EFI_GUID gAppleSingleFileProtocolGuid
extern