From 4e4f9e871236067f0cda4b67a732d3b3bbf08884 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 12 May 2024 09:57:37 +0200 Subject: MHR-23: Update CoreSystem prefix from CA_ to CS_. Signed-off-by: Amlal El Mahrouss --- SDK/Library/CoreSystem/Headers/File.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'SDK/Library/CoreSystem/Headers/File.h') diff --git a/SDK/Library/CoreSystem/Headers/File.h b/SDK/Library/CoreSystem/Headers/File.h index 09cd0b88..c231271c 100644 --- a/SDK/Library/CoreSystem/Headers/File.h +++ b/SDK/Library/CoreSystem/Headers/File.h @@ -16,24 +16,24 @@ typedef QWordType FSRef; /// @param path where to find it. /// @param rest the restrict (rw, rwe, r+, w+, r, w) /// @return FSRef the file. -CA_EXTERN_C FSRef FsOpenFile(const CharacterTypeUTF8* path, const CharacterTypeUTF8* r); +CS_EXTERN_C FSRef FsOpenFile(const CharacterTypeUTF8* path, const CharacterTypeUTF8* r); /// @brief Closes the file and flushes it to the said file. /// @param refFs the filesystem reference. /// @return -CA_EXTERN_C VoidType FsCloseFile(FSRef refFs); +CS_EXTERN_C VoidType FsCloseFile(FSRef refFs); #define kMaxForkNameLength 256 /* long fork names. */ /// @brief A fork information header. typedef struct _Fork { - PtrVoidType forkData; - SizeType forkSize; Int32Type forkFlags; Int32Type forkKind; CharacterTypeUTF8 forkName[kMaxForkNameLength]; -} ForkType; + SizeType forkSize; + CharacterTypeUTF8 forkData[]; +} ForkType, ForkTypePtr; typedef ForkType* FSForkRef; @@ -41,12 +41,10 @@ typedef ForkType* FSForkRef; /// @param refFs the filesystem ref /// @param forkName the fork's name /// @return the fork data. -CA_EXTERN_C FSForkRef FsGetFork(FSRef refFs, const CharacterTypeUTF8* forkName); +CS_EXTERN_C FSForkRef FsGetFork(FSRef refFs, const CharacterTypeUTF8* forkName); /// @brief Check if the filesystem path is valid. /// @return if not return false, or true. -CA_EXTERN_C BooleanType FsIsValidPath(const CharacterTypeUTF8* path); +CS_EXTERN_C BooleanType FsIsValidPath(const CharacterTypeUTF8* path); -/// @note not only limited to, there is code forks, icon forks... -#define FsGetDataFork(refFs) FsGetFork(refFs, "data") -#define FsGetRsrcFork(refFs) FsGetFork(refFs, "rsrc") +/// END OF FILE -- cgit v1.2.3