So that it can be used in tests
---
 src/connection.c      | 8 --------
 src/wayland-private.h | 7 +++++++
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/connection.c b/src/connection.c
index 1d8b61b..c85c669 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -43,14 +43,6 @@
 #include "wayland-os.h"
 
 #define DIV_ROUNDUP(n, a) ( ((n) + ((a) - 1)) / (a) )
-
-struct wl_buffer {
-       char data[4096];
-       uint32_t head, tail;
-};
-
-#define MASK(i) ((i) & 4095)
-
 #define MAX_FDS_OUT    28
 #define CLEN           (CMSG_LEN(MAX_FDS_OUT * sizeof(int32_t)))
 
diff --git a/src/wayland-private.h b/src/wayland-private.h
index 850d571..251e841 100644
--- a/src/wayland-private.h
+++ b/src/wayland-private.h
@@ -92,6 +92,13 @@ struct wl_proxy;
 int wl_interface_equal(const struct wl_interface *iface1,
                       const struct wl_interface *iface2);
 
+struct wl_buffer {
+       char data[4096];
+       uint32_t head, tail;
+};
+
+#define MASK(i) ((i) & 4095)
+
 struct wl_connection *wl_connection_create(int fd);
 void wl_connection_destroy(struct wl_connection *connection);
 void wl_connection_copy(struct wl_connection *connection, void *data, size_t 
size);
-- 
1.8.4.2

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to