libweston: change windowed_output_api output_create to create_head

Rename the function pointer to create_head() because that is what it
does on backends that are converted to the head-based API. Update the
documentation to match.

Surprisingly this is not an ABI break, as the function behaviour and
signature remain intact. Hence API_NAME is not bumped.

This is only an API break, and main.c is fixed accordingly.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Ian Ray <ian.ray@ge.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
This commit is contained in:
Pekka Paalanen
2017-10-12 15:03:42 +03:00
parent 1394ac303e
commit e868c3fc15
2 changed files with 18 additions and 15 deletions
+5 -5
View File
@@ -1384,7 +1384,7 @@ load_headless_backend(struct weston_compositor *c,
return -1;
}
if (api->output_create(c, "headless") < 0)
if (api->create_head(c, "headless") < 0)
return -1;
}
@@ -1604,7 +1604,7 @@ load_x11_backend(struct weston_compositor *c,
continue;
}
if (api->output_create(c, output_name) < 0) {
if (api->create_head(c, output_name) < 0) {
free(output_name);
return -1;
}
@@ -1620,7 +1620,7 @@ load_x11_backend(struct weston_compositor *c,
return -1;
}
if (api->output_create(c, default_output) < 0) {
if (api->create_head(c, default_output) < 0) {
free(default_output);
return -1;
}
@@ -1736,7 +1736,7 @@ load_wayland_backend(struct weston_compositor *c,
continue;
}
if (api->output_create(c, output_name) < 0) {
if (api->create_head(c, output_name) < 0) {
free(output_name);
return -1;
}
@@ -1749,7 +1749,7 @@ load_wayland_backend(struct weston_compositor *c,
if (asprintf(&output_name, "wayland%d", i) < 0)
return -1;
if (api->output_create(c, output_name) < 0) {
if (api->create_head(c, output_name) < 0) {
free(output_name);
return -1;
}