[PATCH 3/3] wayland-cursor: Adapt to new shm pool helper functions

Andre Heider a.heider at gmail.com
Tue Aug 7 06:28:17 PDT 2012


On Tue, Aug 7, 2012 at 2:15 PM, Ander Conselvan de Oliveira
<conselvan2 at gmail.com> wrote:
> void
> wl_shm_mapping_set_resize_behavior(struct wl_shm_mapping *mapping,
>                                    enum wl_shm_mapping_resize_behavior
> behavior);
>
> Or maybe have that as flags for wl_shm_mapping_create(). But the former is a
> change that can be done in the future without breaking the API.

How about adding that enum as argument to _allocate() function? That
would give the user a little more control. Like: Alloc multiple small
buffers with WL_SHM_MAPPING_RESIZE_DOUBLE, then alloc a single bigger
buffer with WL_SHM_MAPPING_RESIZE_ADD_SIZE.

Thanks,
Andre


More information about the wayland-devel mailing list