weston: Rename weston_output_init_pending() to weston_output_init()

v2:

 - Rebased for latest changes.

v3:

 - Rebased for changes in wayland backend.

Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: Armin Krezović <krezovic.armin@gmail.com>
dev
Armin Krezović 8 years ago committed by Pekka Paalanen
parent 782f5df9e3
commit 4008740d5e
  1. 2
      libweston/compositor-drm.c
  2. 2
      libweston/compositor-fbdev.c
  3. 2
      libweston/compositor-headless.c
  4. 2
      libweston/compositor-rdp.c
  5. 6
      libweston/compositor-wayland.c
  6. 2
      libweston/compositor-x11.c
  7. 6
      libweston/compositor.c
  8. 8
      libweston/compositor.h

@ -2563,7 +2563,7 @@ create_output_for_connector(struct drm_backend *b,
b->crtc_allocator |= (1 << output->crtc_id);
b->connector_allocator |= (1 << output->connector_id);
weston_output_init_pending(&output->base, b->compositor);
weston_output_init(&output->base, b->compositor);
weston_compositor_add_pending_output(&output->base, b->compositor);
return 0;

@ -498,7 +498,7 @@ fbdev_output_create(struct fbdev_backend *backend,
output->base.disable = NULL;
output->base.enable = fbdev_output_enable;
weston_output_init_pending(&output->base, backend->compositor);
weston_output_init(&output->base, backend->compositor);
/* only one static mode in list */
output->mode.flags =

@ -239,7 +239,7 @@ headless_output_create(struct weston_compositor *compositor,
output->base.disable = headless_output_disable;
output->base.enable = headless_output_enable;
weston_output_init_pending(&output->base, compositor);
weston_output_init(&output->base, compositor);
weston_compositor_add_pending_output(&output->base, compositor);
return 0;

@ -573,7 +573,7 @@ rdp_backend_create_output(struct weston_compositor *compositor)
output->base.disable = rdp_output_disable;
output->base.enable = rdp_output_enable;
weston_output_init_pending(&output->base, compositor);
weston_output_init(&output->base, compositor);
weston_compositor_add_pending_output(&output->base, compositor);
return 0;

@ -1155,7 +1155,7 @@ wayland_output_create(struct weston_compositor *compositor, const char *name)
output->base.name = strdup(name);
weston_output_init_pending(&output->base, compositor);
weston_output_init(&output->base, compositor);
weston_compositor_add_pending_output(&output->base, compositor);
return 0;
@ -1242,7 +1242,7 @@ wayland_output_create_for_parent_output(struct wayland_backend *b,
goto out;
}
weston_output_init_pending(&output->base, b->compositor);
weston_output_init(&output->base, b->compositor);
output->base.scale = 1;
output->base.transform = WL_OUTPUT_TRANSFORM_NORMAL;
@ -1280,7 +1280,7 @@ wayland_output_create_fullscreen(struct wayland_backend *b)
output->base.name = strdup("wayland-fullscreen");
weston_output_init_pending(&output->base, b->compositor);
weston_output_init(&output->base, b->compositor);
output->base.scale = 1;
output->base.transform = WL_OUTPUT_TRANSFORM_NORMAL;

@ -1031,7 +1031,7 @@ x11_output_create(struct weston_compositor *compositor,
output->base.disable = x11_output_disable;
output->base.enable = x11_output_enable;
weston_output_init_pending(&output->base, compositor);
weston_output_init(&output->base, compositor);
weston_compositor_add_pending_output(&output->base, compositor);
return 0;

@ -4427,8 +4427,8 @@ weston_output_set_transform(struct weston_output *output,
* configured either by compositors or backends.
*/
WL_EXPORT void
weston_output_init_pending(struct weston_output *output,
struct weston_compositor *compositor)
weston_output_init(struct weston_output *output,
struct weston_compositor *compositor)
{
output->compositor = compositor;
output->destroying = 0;
@ -4587,7 +4587,7 @@ weston_output_enable(struct weston_output *output)
*
* \param output The weston_output object that needs to be disabled.
*
* See weston_output_init_pending() for more information on the
* See weston_output_init() for more information on the
* state output is returned to.
*
* Calls a backend specific function to disable an output, in case

@ -1611,9 +1611,7 @@ void
weston_output_update_matrix(struct weston_output *output);
void
weston_output_move(struct weston_output *output, int x, int y);
void
weston_output_init(struct weston_output *output, struct weston_compositor *c,
int x, int y, int width, int height, uint32_t transform, int32_t scale);
void
weston_compositor_add_output(struct weston_compositor *compositor,
struct weston_output *output);
@ -1830,8 +1828,8 @@ weston_output_set_transform(struct weston_output *output,
uint32_t transform);
void
weston_output_init_pending(struct weston_output *output,
struct weston_compositor *compositor);
weston_output_init(struct weston_output *output,
struct weston_compositor *compositor);
void
weston_compositor_add_pending_output(struct weston_output *output,

Loading…
Cancel
Save