summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/main.c b/main.c
index 5663924..1bbc885 100644
--- a/main.c
+++ b/main.c
@@ -1,9 +1,18 @@
#include <stdio.h>
+#include <wayland-client.h>
-int main(void) {
- printf("Hello world!\n");
+int main(void)
+{
+ struct wl_display *display = wl_display_connect(NULL);
+ if (!display) {
+ fprintf(stderr, "Failed to connect to Wayland display.\n");
+ return 1;
+ }
+ fprintf(stderr, "Connection established!\n");
+
+ wl_display_disconnect(display);
return 0;
}