swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit 4698a550a022da81073301332c764d32ba59b623
parent c9df1ef91bf665fd9ee2e842a1140002a131730d
Author: Michael Forney <mforney@mforney.org>
Date:   Fri, 21 Jun 2013 22:24:01 -0700

Remove testclient.c

Diffstat:
Dtestclient.c | 34----------------------------------
1 file changed, 0 insertions(+), 34 deletions(-)

diff --git a/testclient.c b/testclient.c @@ -1,34 +0,0 @@ -#include <stdbool.h> -#include <stdio.h> -#include <wayland-client.h> - -void registry_handle_global(void * data, struct wl_registry * wl_registry, - uint32_t name, const char * interface, - uint32_t version) -{ - printf("handle global\n"); - printf("\tinterface: %s\n", interface); -} - -static const struct wl_registry_listener registry_listener = { - .global = &registry_handle_global -}; - -int main(int argc, char * argv[]) -{ - struct wl_display * display; - struct wl_registry * registry; - bool running = true; - - display = wl_display_connect(NULL); - registry = wl_display_get_registry(display); - - wl_registry_add_listener(registry, &registry_listener, NULL); - wl_display_dispatch(display); - - while (running) - { - wl_display_dispatch_pending(display); - wl_display_flush(display); - } -}