From ac80c54f1883779762276c6161bd2a273bac6fe3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 2 Mar 2012 23:38:31 -0500 Subject: [PATCH] connection: Export wl_connection_queue() so we can test it --- src/connection.c | 2 +- src/wayland-private.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/connection.c b/src/connection.c index 6bcc91a..1ea2418 100644 --- a/src/connection.c +++ b/src/connection.c @@ -349,7 +349,7 @@ wl_connection_write(struct wl_connection *connection, return 0; } -static int +int wl_connection_queue(struct wl_connection *connection, const void *data, size_t count) { diff --git a/src/wayland-private.h b/src/wayland-private.h index bdeafd4..b843e89 100644 --- a/src/wayland-private.h +++ b/src/wayland-private.h @@ -66,6 +66,8 @@ void wl_connection_copy(struct wl_connection *connection, void *data, size_t siz void wl_connection_consume(struct wl_connection *connection, size_t size); int wl_connection_data(struct wl_connection *connection, uint32_t mask); int wl_connection_write(struct wl_connection *connection, const void *data, size_t count); +int wl_connection_queue(struct wl_connection *connection, + const void *data, size_t count); struct wl_closure * wl_connection_vmarshal(struct wl_connection *connection, -- 2.7.4