Init
This commit is contained in:
16
client.c
Normal file
16
client.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
#include <wayland/wayland-client.h>
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user