diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-13 11:49:38 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-13 11:49:38 +0200 |
| commit | f59970eaf733118db543c7c37c49d32ca53e60aa (patch) | |
| tree | b5d0cb728fa022ebe6ea56396054d8da8f45e5d6 /Private | |
| parent | c3b3b7727b9e2e7cbddcd0997c53d96ba3bb0e82 (diff) | |
kernel: moved Servers to Private directory.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
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. |
