From 4e1d0973f53fd6c42acb250b0a91376df08902ff Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 10 Jul 2019 20:56:04 +0300 Subject: [PATCH] libweston: Migrate functions that operate on 'weston_spring' Signed-off-by: Marius Vlad --- include/libweston/libweston.h | 8 -------- libweston/libweston-internal.h | 11 +++++++++++ libweston/zoom.c | 1 + 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h index 8dec6f85..4a6385b7 100644 --- a/include/libweston/libweston.h +++ b/include/libweston/libweston.h @@ -1639,14 +1639,6 @@ weston_view_from_global_fixed(struct weston_view *view, wl_fixed_t x, wl_fixed_t y, wl_fixed_t *vx, wl_fixed_t *vy); -void -weston_spring_init(struct weston_spring *spring, - double k, double current, double target); -void -weston_spring_update(struct weston_spring *spring, const struct timespec *time); -int -weston_spring_done(struct weston_spring *spring); - void weston_view_activate(struct weston_view *view, struct weston_seat *seat, diff --git a/libweston/libweston-internal.h b/libweston/libweston-internal.h index 0bbd2196..e5e63785 100644 --- a/libweston/libweston-internal.h +++ b/libweston/libweston-internal.h @@ -263,4 +263,15 @@ weston_surface_to_buffer_region(struct weston_surface *surface, pixman_region32_t *buffer_region); void weston_surface_schedule_repaint(struct weston_surface *surface); + +/* weston_spring */ + +void +weston_spring_init(struct weston_spring *spring, + double k, double current, double target); +int +weston_spring_done(struct weston_spring *spring); + +void +weston_spring_update(struct weston_spring *spring, const struct timespec *time); #endif diff --git a/libweston/zoom.c b/libweston/zoom.c index 8d513c39..ac8f1f30 100644 --- a/libweston/zoom.c +++ b/libweston/zoom.c @@ -31,6 +31,7 @@ #include #include +#include "libweston-internal.h" #include "text-cursor-position-server-protocol.h" #include "shared/helpers.h"