diff options
Diffstat (limited to 'Private')
| -rw-r--r-- | Private/Servers/.gitkeep | 0 | ||||
| -rw-r--r-- | Private/Servers/CoreDisplay/Headers/.gitkeep | 0 | ||||
| -rw-r--r-- | Private/Servers/CoreDisplay/README.txt | 4 | ||||
| -rw-r--r-- | Private/Servers/CoreDisplay/Sources/CoreDisplay.c | 32 |
4 files changed, 36 insertions, 0 deletions
diff --git a/Private/Servers/.gitkeep b/Private/Servers/.gitkeep new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/Private/Servers/.gitkeep diff --git a/Private/Servers/CoreDisplay/Headers/.gitkeep b/Private/Servers/CoreDisplay/Headers/.gitkeep new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/Private/Servers/CoreDisplay/Headers/.gitkeep diff --git a/Private/Servers/CoreDisplay/README.txt b/Private/Servers/CoreDisplay/README.txt new file mode 100644 index 00000000..669ec31c --- /dev/null +++ b/Private/Servers/CoreDisplay/README.txt @@ -0,0 +1,4 @@ +CoreDisplay is the window manager of NewOS. +Written in C by Amlal EL Mahrouss. + +Unlike X it is not networked, but can be extend to with NetworkDisplay. diff --git a/Private/Servers/CoreDisplay/Sources/CoreDisplay.c b/Private/Servers/CoreDisplay/Sources/CoreDisplay.c new file mode 100644 index 00000000..c681730c --- /dev/null +++ b/Private/Servers/CoreDisplay/Sources/CoreDisplay.c @@ -0,0 +1,32 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + + File: Server.c + Purpose: Display server. + +------------------------------------------- */ + +#include <CoreDisplay.h> +#include <IPCWrapper.h> + +/// @brief Called when the server starts. +DWordType ServerStartup(VoidType) +{ + CDInitDisplay(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) +{ + CDCloseDisplay(); /// takes no arguments. + return 0; +} + +/// EOF. |
