summaryrefslogtreecommitdiff
path: root/src/wlclock.h
diff options
context:
space:
mode:
authorLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2020-09-24 18:01:28 +0200
committerLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2020-09-24 18:01:28 +0200
commit9ff4f4959b8d78104fa4defb3c4cea9606e3c484 (patch)
treeac80aef7e1caff0d0af491ea4816ca63706a8116 /src/wlclock.h
downloadwlclock-9ff4f4959b8d78104fa4defb3c4cea9606e3c484.tar.gz
wlclock-9ff4f4959b8d78104fa4defb3c4cea9606e3c484.tar.bz2
Init
Diffstat (limited to 'src/wlclock.h')
-rw-r--r--src/wlclock.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/wlclock.h b/src/wlclock.h
new file mode 100644
index 0000000..684c4b3
--- /dev/null
+++ b/src/wlclock.h
@@ -0,0 +1,40 @@
+#ifndef WLCLOCK_WLCLOCK_H
+#define WLCLOCK_WLCLOCK_H
+
+#include<stdbool.h>
+#include<stdint.h>
+#include<time.h>
+#include<wayland-server.h>
+
+#include"wlr-layer-shell-unstable-v1-protocol.h"
+
+struct Wlclock
+{
+ struct wl_display *display;
+ struct wl_registry *registry;
+ struct wl_compositor *compositor;
+ struct wl_shm *shm;
+ struct zwlr_layer_shell_v1 *layer_shell;
+ struct zxdg_output_manager_v1 *xdg_output_manager;
+
+ struct wl_list outputs;
+ char *output;
+
+ time_t now;
+
+ bool loop;
+ int verbosity;
+ int ret;
+
+ enum zwlr_layer_shell_v1_layer layer;
+ uint32_t size;
+ char *namespace;
+ int32_t exclusive_zone;
+ uint32_t border_top, border_right, border_bottom, border_left;
+ uint32_t margin_top, margin_right, margin_bottom, margin_left;
+ uint32_t radius_top_left, radius_top_right, radius_bottom_left, radius_bottom_right;
+ uint32_t anchor;
+ bool input;
+};
+
+#endif