[PATCH 5/5] compositor: Document refs for alternatives/assumptions for backend configs

Pekka Paalanen ppaalanen at gmail.com
Wed Apr 6 08:46:28 UTC 2016


On Wed,  9 Mar 2016 16:49:32 -0800
Bryce Harrington <bryce at osg.samsung.com> wrote:

> Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>
> ---
>  src/main.c | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/src/main.c b/src/main.c
> index 7370292..310382a 100644
> --- a/src/main.c
> +++ b/src/main.c
> @@ -748,6 +748,19 @@ load_drm_backend(struct weston_compositor *c, const char *backend,
>  					 "gbm-format", &config->base.format,
>  					 NULL);
>  
> +	/* Use a major/minor versioning scheme to enable backends to detect
> +	 * ABI changes in the config struct we're passing in.
> +	 *
> +	 * NOTE: Alternate designs were proposed for using opaque structures[1]
> +	 * and for section+key/value getter/setters[2].  The rationale for
> +	 * selecting the transparent structure design is based on several
> +	 * assumptions[3] which may require re-evaluating the design choice
> +	 * if they fail to hold.
> +	 *
> +	 * 1: https://lists.freedesktop.org/archives/wayland-devel/2016-February/026989.html
> +	 * 2: https://lists.freedesktop.org/archives/wayland-devel/2016-February/026929.html
> +	 * 3: https://lists.freedesktop.org/archives/wayland-devel/2016-February/027228.html
> +	 */
>  	config->base.base.struct_version = 1;
>  	config->base.base.struct_size = sizeof(struct weston_drm_backend_config);
>  	config->base.configure_output = drm_configure_output;

Hi,

shouldn't this be in compositor.h, with the struct
weston_backend_config definition?

Otherwise looks good.


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


More information about the wayland-devel mailing list