summaryrefslogtreecommitdiff
path: root/userland/windowserver/ws.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-22 19:50:38 +0200
committerAnton Kling <anton@kling.gg>2023-10-22 19:50:38 +0200
commit4e09bca9e34c226b6d7e34b4fa11248405fd988e (patch)
tree80f156b7940d9d19971395f335530170c69516c7 /userland/windowserver/ws.h
Move everything into a new repo.
Diffstat (limited to 'userland/windowserver/ws.h')
-rw-r--r--userland/windowserver/ws.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/userland/windowserver/ws.h b/userland/windowserver/ws.h
new file mode 100644
index 0000000..c4daf7b
--- /dev/null
+++ b/userland/windowserver/ws.h
@@ -0,0 +1,30 @@
+#ifndef WS_H
+#define WS_H
+#include <stddef.h>
+#include <stdint.h>
+
+typedef struct {
+ int bitmap_fd;
+ uint32_t *bitmap_ptr;
+ int x;
+ int y;
+ int sx;
+ int sy;
+} WINDOW;
+
+typedef struct {
+ int fd;
+ WINDOW *w;
+} CLIENT;
+
+typedef struct {
+ int vga_fd;
+ uint8_t *back_buffer;
+ uint8_t *true_buffer;
+ size_t size;
+ uint8_t border_size;
+ uint8_t border_color;
+ uint8_t wallpaper_color;
+ CLIENT **clients;
+} DISPLAY;
+#endif