summaryrefslogtreecommitdiffhomepage
path: root/dev/libSystem/SystemKit/System.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-06-12 02:54:29 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-06-12 02:55:14 +0200
commita5851dfaa65d15f44f52b2aed1aa0179291b46fc (patch)
tree8d49a65a7d273cdaf9dfa4f56c9ffba5999633ff /dev/libSystem/SystemKit/System.h
parent1ba9d3b0756d2d101906296cbcfeeecc39144cac (diff)
feat: libSystem, kernel: finalizing the hash and routing system of libSystem's handlers.
feat: Rework TTY, and CD-ROM API too. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/libSystem/SystemKit/System.h')
-rw-r--r--dev/libSystem/SystemKit/System.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/dev/libSystem/SystemKit/System.h b/dev/libSystem/SystemKit/System.h
index 91899efe..421868ae 100644
--- a/dev/libSystem/SystemKit/System.h
+++ b/dev/libSystem/SystemKit/System.h
@@ -309,16 +309,20 @@ IMPORT_C SInt32 PwrSendCode(_Output SInt32& code);
// CD-ROM API.
// ------------------------------------------------------------------------------------------ //
-IMPORT_C SInt32 CdEjectDrive(_Input Char drv_letter);
+#define kCDDevicePath "/devices/dvd{}"
-IMPORT_C SInt32 CdOpenTray(Void);
+IMPORT_C IORef CdOpenTray(Void);
+
+IMPORT_C SInt32 CdEjectDrive(_Input IORef cdrom);
IMPORT_C SInt32 CdCloseTray(Void);
// ------------------------------------------------------------------------------------------ //
-// Printer API.
+// TTY API.
// ------------------------------------------------------------------------------------------ //
+#define kPrintDevicePath "/devices/tty{}"
+
IMPORT_C SInt32 PrintOut(IORef file /* nullptr to direct to stdout */, const Char* fmt, ...);
IMPORT_C SInt32 PrintIn(IORef file /* nullptr to direct to stdout */, const Char* fmt, ...);