uint32_t key;
};
+static int wl_debug = 0;
+
static int
connection_update(struct wl_connection *connection,
uint32_t mask, void *data)
va_end(ap);
wl_closure_send(closure, proxy->display->connection);
+
+ if (wl_debug) {
+ fprintf(stderr, " -> ");
+ wl_closure_print(closure, &proxy->object);
+ }
+
wl_closure_destroy(closure);
}
struct sockaddr_un addr;
socklen_t size;
const char *runtime_dir;
+ const char *debug;
size_t name_size;
+ debug = getenv("WAYLAND_DEBUG");
+ if (debug)
+ wl_debug = 1;
+
display = malloc(sizeof *display);
if (display == NULL)
return NULL;
closure = wl_connection_demarshal(display->connection,
size, display->objects, message);
+ if (wl_debug)
+ wl_closure_print(closure, &proxy->object);
+
wl_list_for_each(listener, &proxy->listener_list, link)
wl_closure_invoke(closure, &proxy->object,
listener->implementation[opcode],