tests/wayland: Make create_shm_buffer() public

It will be needed in a following commit.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1055>
This commit is contained in:
Robert Mader 2022-05-23 11:05:10 +02:00 committed by Marge Bot
parent db2cf4b874
commit fd7ee33337
2 changed files with 8 additions and 1 deletions

View File

@ -280,7 +280,7 @@ static const struct wl_buffer_listener buffer_listener = {
handle_buffer_release
};
static gboolean
gboolean
create_shm_buffer (WaylandDisplay *display,
int width,
int height,

View File

@ -40,6 +40,13 @@ int create_anonymous_file (off_t size);
WaylandDisplay * wayland_display_new (WaylandDisplayCapabilities capabilities);
gboolean create_shm_buffer (WaylandDisplay *display,
int width,
int height,
struct wl_buffer **out_buffer,
void **out_data,
int *out_size);
void draw_surface (WaylandDisplay *display,
struct wl_surface *surface,
int width,