summaryrefslogtreecommitdiffhomepage
path: root/Servers/DisplayManager
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-12 12:54:30 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-12 12:54:30 +0200
commitc3b3b7727b9e2e7cbddcd0997c53d96ba3bb0e82 (patch)
treedb2fbe59e73e5610a678028a3214041773f134bc /Servers/DisplayManager
parent3fca74d9544fc4cf0218b6e8154b53625bd3df66 (diff)
kernel: update IPC protocol header, framebuffer header.
servers/display: Add display server. private: rename LinkerScripts to just Linker. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Servers/DisplayManager')
-rw-r--r--Servers/DisplayManager/Server.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/Servers/DisplayManager/Server.c b/Servers/DisplayManager/Server.c
new file mode 100644
index 00000000..673cf479
--- /dev/null
+++ b/Servers/DisplayManager/Server.c
@@ -0,0 +1,30 @@
+/* -------------------------------------------
+
+ Copyright Mahrouss Logic
+
+ File: Server.c
+ Purpose: DisplayManager server.
+
+------------------------------------------- */
+
+#include "Server.h"
+
+/// @brief Called when the server starts.
+DWordType ServerStartup(VoidType)
+{
+ DMInitDisplay(kDMNoFlags); // init standard display. Need to notify other endpoits.
+ // as well.
+ //
+
+ IPCSendMessage(kIPCBroadcast); /// broadcast our presence
+
+ return 0;
+}
+
+/// @brief Called when the server shuts down.
+DWordType ServerShutdown(VoidType)
+{
+ DMCloseDisplay(); /// takes no arguments.
+ return 0;
+}
+