commit 4698a55

Michael Forney  ·  2013-06-22 05:24:01 +0000 UTC
parent c9df1ef
Remove testclient.c
1 files changed,  +0, -34
+0, -34
 1@@ -1,34 +0,0 @@
 2-#include <stdbool.h>
 3-#include <stdio.h>
 4-#include <wayland-client.h>
 5-
 6-void registry_handle_global(void * data, struct wl_registry * wl_registry,
 7-                            uint32_t name, const char * interface,
 8-                            uint32_t version)
 9-{
10-    printf("handle global\n");
11-    printf("\tinterface: %s\n", interface);
12-}
13-
14-static const struct wl_registry_listener registry_listener = {
15-    .global = &registry_handle_global
16-};
17-
18-int main(int argc, char * argv[])
19-{
20-    struct wl_display * display;
21-    struct wl_registry * registry;
22-    bool running = true;
23-
24-    display = wl_display_connect(NULL);
25-    registry = wl_display_get_registry(display);
26-
27-    wl_registry_add_listener(registry, &registry_listener, NULL);
28-    wl_display_dispatch(display);
29-
30-    while (running)
31-    {
32-        wl_display_dispatch_pending(display);
33-        wl_display_flush(display);
34-    }
35-}