[RFC wayland] wayland-server: Finally remove deprecated struct wl_buffer definition

Pekka Paalanen ppaalanen at gmail.com
Mon Feb 19 07:57:30 UTC 2018


On Fri, 16 Feb 2018 10:54:40 -0600
Derek Foreman <derekf at osg.samsung.com> wrote:

> commit d94a8722cb29d8b897672be66ff3c9ff79eab6fe
> warned this was coming, back in 2013.
> 
> I've seen libraries that have wayland client and server using functions
> in the same file.  Since struct wl_buffer still exists as an opaque
> entity in client code, the vestigial deprecated wl_buffer from the
> server include will generate warnings when not building with
> WL_HIDE_DEPRECATED.
> 
> Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
> ---
> 
> Is there anyone out there this will hurt?
> 
> I'd like to at least see WL_DEPRECATED dropped from wl_buffer,
> since it causes annoying build warnings when mixing client/server
> code in the same files - even when not using the non-opaque
> struct wl_buffer.
> 
> 
>  src/wayland-server.h | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/src/wayland-server.h b/src/wayland-server.h
> index ccf9783..1be565f 100644
> --- a/src/wayland-server.h
> +++ b/src/wayland-server.h
> @@ -70,12 +70,6 @@ struct wl_resource {
>  	void *data;
>  };
>  
> -struct wl_buffer {
> -	struct wl_resource resource;
> -	int32_t width, height;
> -	uint32_t busy_count;
> -} WL_DEPRECATED;
> -
>  uint32_t
>  wl_client_add_resource(struct wl_client *client,
>  		       struct wl_resource *resource) WL_DEPRECATED;

Hi Derek,

while I would argue that no-one should be building without
WL_HIDE_DEPRECATED, that's somewhat orthogonal to this, so I have
nothing against this change. Therefore:

Reviewed-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180219/0b4d52a1/attachment.sig>


More information about the wayland-devel mailing list