summaryrefslogtreecommitdiffhomepage
path: root/Servers/DisplayManager/Server.c
diff options
context:
space:
mode:
Diffstat (limited to 'Servers/DisplayManager/Server.c')
-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;
+}
+