diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-22 00:57:17 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-22 00:57:17 +0100 |
| commit | 7b16a971891e12550569aa67d4185c2e51c3b8a9 (patch) | |
| tree | 41a2916a5225139cca013181af6a7faf53036305 /Public/SDK/System.Core/Headers/Containers | |
| parent | 80b76666074aa94f165e3db7b3dda2145ca6efc0 (diff) | |
unstable: /Public/: Rename Kits/ to SDK/
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/SDK/System.Core/Headers/Containers')
| -rw-r--r-- | Public/SDK/System.Core/Headers/Containers/ODF.hxx | 43 | ||||
| -rw-r--r-- | Public/SDK/System.Core/Headers/Containers/XIFF.hxx | 42 |
2 files changed, 85 insertions, 0 deletions
diff --git a/Public/SDK/System.Core/Headers/Containers/ODF.hxx b/Public/SDK/System.Core/Headers/Containers/ODF.hxx new file mode 100644 index 00000000..53098c3f --- /dev/null +++ b/Public/SDK/System.Core/Headers/Containers/ODF.hxx @@ -0,0 +1,43 @@ +/** =========================================== + (C) Mahrouss Logic + ===========================================*/ + +#ifndef __ODF__ +#define __ODF__ + +#include <System.Core/Headers/Defs.hxx> + +/** + * @brief Open Document Format + * @file ODF.hxx +*/ + +/// @brief four-character code for ODF. +#define kFourCCLength_ODF 4 + +/// @brief Document file header. +typedef struct ODFFileHeader +{ + CharacterType f_Ident[kFourCCLength_ODF]; + + Int32Type f_DocumentKind; + Int32Type f_DocumentSize; + + Int64Type f_MetaForkOffset; + Int64Type f_DocumentForkOffset; + + CharacterType f_Padding[4]; +} PACKED ODFFileHeader; + +/// @brief ODF Fork header +typedef struct ODFForkHeader +{ + CharacterType f_MetadataName[255]; + + Int32Type f_MetadataKind; + Int32Type f_MetadataSize; + + CharacterType f_Padding; +} PACKED ODFForkHeader; + +#endif // !__ODF__
\ No newline at end of file diff --git a/Public/SDK/System.Core/Headers/Containers/XIFF.hxx b/Public/SDK/System.Core/Headers/Containers/XIFF.hxx new file mode 100644 index 00000000..e14868a6 --- /dev/null +++ b/Public/SDK/System.Core/Headers/Containers/XIFF.hxx @@ -0,0 +1,42 @@ +/** =========================================== + (C) Mahrouss Logic + ===========================================*/ + +#ifndef __XIFF__ +#define __XIFF__ + +/** --------------------------------------------------- + + * THIS FILE CONTAINS CODE FOR THE eXtended Information File Format. + * XIFF is used to make setup programs/audio/video files. + +------------------------------------------------------- */ + +#include <System.Core/Headers/Defs.hxx> + +/// @brief four-character code for XIFF. +#define kFourCCLength_XIFF 4 + +#define kXIFFContainerVideo "XVFF" +#define kXIFFContainerAudio "XAFF" +#define kXIFFContainerInstaller "XNFF" +#define kXIFFContainerGeneric "XIFF" +#define kXIFFContainerBinary "XBFF" + +/*** + * @brief Generic XIFF header + * Used by XIFF based containers. + */ + +struct PACKED XiffHeader final { + ByteType f_Magic[kFourCCLength_XIFF]; // XIFF string (includes \0) + DWordType f_Size; // overall size of header (XiffHeader) in bytes + DWordType f_FormatType; // format type. generic + ByteType f_SpecificMag[kFourCCLength_XIFF]; // The sub header magic + DWordType f_SpecificSize; // length of the format data + DWordType f_SpecificFormatType; // format type. generic +}; + +typedef struct XiffHeader XiffHeader; + +#endif // ifndef __XIFF__ |
