summaryrefslogtreecommitdiffhomepage
path: root/Public/Developer/System.Core/Headers
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-26 05:37:44 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-26 05:37:44 +0100
commit0d6df50e386dae373c654522d241330a8a42412b (patch)
tree004fba8b1bd513154cb925450c76ae1e011b86f8 /Public/Developer/System.Core/Headers
parent1cd930c0c72f215101300dfcc5860800a474362d (diff)
NewBoot: Fully Implemented an EPM drive, needs now to write the layout
found inside Private/Rooot inside the epm.img, so that the user can install it. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/Developer/System.Core/Headers')
-rw-r--r--Public/Developer/System.Core/Headers/File.hxx32
1 files changed, 17 insertions, 15 deletions
diff --git a/Public/Developer/System.Core/Headers/File.hxx b/Public/Developer/System.Core/Headers/File.hxx
index f76dbb60..3d3abf13 100644
--- a/Public/Developer/System.Core/Headers/File.hxx
+++ b/Public/Developer/System.Core/Headers/File.hxx
@@ -48,38 +48,40 @@ class FileInterface final {
CA_COPY_DEFAULT(FileInterface);
public:
- PtrVoidType Read(UIntPtrType off, SizeType sz) {
+ PtrVoidType ReadFork(const CharacterTypeUTF8* name, UIntPtrType off, SizeType sz) {
return (PtrVoidType)kApplicationObject->Invoke(kApplicationObject, mHandle,
- 2, off, sz);
+ 2, name, off, sz);
}
- PtrVoidType Read(SizeType sz) {
+ PtrVoidType ReadFork(const CharacterTypeUTF8* name, SizeType sz) {
return (PtrVoidType)kApplicationObject->Invoke(kApplicationObject, mHandle,
- 3, sz);
+ name, 3, sz);
}
- void Write(PtrVoidType buf, UIntPtrType off, SizeType sz) {
- kApplicationObject->Invoke(kApplicationObject, mHandle, 4, buf, off, sz);
+ void WriteFork(const CharacterTypeUTF8* name, PtrVoidType buf, UIntPtrType off, SizeType sz) {
+ kApplicationObject->Invoke(kApplicationObject, mHandle, 4, name, buf, off, sz);
}
- void Write(PtrVoidType buf, SizeType sz) {
- kApplicationObject->Invoke(kApplicationObject, mHandle, 5, buf, sz);
+ void WriteFork(const CharacterTypeUTF8* name, PtrVoidType buf, SizeType sz) {
+ kApplicationObject->Invoke(kApplicationObject, mHandle, 5, name, buf, sz);
}
- void Seek(UIntPtrType off) {
- kApplicationObject->Invoke(kApplicationObject, mHandle, 5);
+ void SeekFork(const CharacterTypeUTF8* name) {
+ kApplicationObject->Invoke(kApplicationObject, mHandle, 6, name);
}
- void Rewind() { kApplicationObject->Invoke(kApplicationObject, mHandle, 6); }
+ void RewindFork() { kApplicationObject->Invoke(kApplicationObject, mHandle, 7); }
public:
- const char *MIME() {
+ const CharacterTypeUTF8 *MIME() {
return (const char *)kApplicationObject->Invoke(kApplicationObject, mHandle,
- 7);
+ 8);
}
- void MIME(const char *mime) {
- kApplicationObject->Invoke(kApplicationObject, mHandle, 8, mime);
+ void MIME(const CharacterTypeUTF8 *mime) {
+ CA_MUST_PASS(mime);
+
+ kApplicationObject->Invoke(kApplicationObject, mHandle, 9, mime);
}
private: