OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcAppleDiskImageLibInternal.h
Go to the documentation of this file.
1
13#ifndef APPLE_DISK_IMAGE_LIB_INTERNAL_H
14#define APPLE_DISK_IMAGE_LIB_INTERNAL_H
15
16#define BASE_256B 0x0100U
17#define SIZE_512B 0x0200U
18
19#define DMG_SECTOR_START_ABS(b, c) (((b)->SectorNumber) + ((c)->SectorNumber))
20
21#define DMG_PLIST_RESOURCE_FORK_KEY "resource-fork"
22#define DMG_PLIST_BLOCK_LIST_KEY "blkx"
23#define DMG_PLIST_ATTRIBUTES "Attributes"
24#define DMG_PLIST_CFNAME "CFName"
25#define DMG_PLIST_DATA "Data"
26#define DMG_PLIST_ID "ID"
27#define DMG_PLIST_NAME "Name"
28
29BOOLEAN
31 IN CHAR8 *Plist,
32 IN UINT32 PlistSize,
33 IN UINTN SectorCount,
34 IN UINTN DataForkOffset,
35 IN UINTN DataForkSize,
36 OUT UINT32 *BlockCount,
37 OUT APPLE_DISK_IMAGE_BLOCK_DATA ***Blocks
38 );
39
40BOOLEAN
43 IN UINTN Lba,
45 OUT APPLE_DISK_IMAGE_CHUNK **Chunk
46 );
47
48#endif // APPLE_DISK_IMAGE_LIB_INTERNAL_H
BOOLEAN InternalParsePlist(IN CHAR8 *Plist, IN UINT32 PlistSize, IN UINTN SectorCount, IN UINTN DataForkOffset, IN UINTN DataForkSize, OUT UINT32 *BlockCount, OUT APPLE_DISK_IMAGE_BLOCK_DATA ***Blocks)
BOOLEAN InternalGetBlockChunk(IN OC_APPLE_DISK_IMAGE_CONTEXT *Context, IN UINTN Lba, OUT APPLE_DISK_IMAGE_BLOCK_DATA **Data, OUT APPLE_DISK_IMAGE_CHUNK **Chunk)