libweston: Migrate functions that operate on 'weston_spring'
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 10 Jul 2019 17:56:04 +0000 (20:56 +0300)
committerDaniel Stone <daniel@fooishbar.org>
Thu, 18 Jul 2019 06:43:38 +0000 (06:43 +0000)
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
include/libweston/libweston.h
libweston/libweston-internal.h
libweston/zoom.c

index 8dec6f852079b634f1ed488ee8bc852bc511afa0..4a6385b70cf92c634cc9bb8c86e8376978cab614 100644 (file)
@@ -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,
index 0bbd2196b856f648ea645ca6916182030f8ba92b..e5e637855f28d5248a6e04db75c7c986cb3e67ab 100644 (file)
@@ -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
index 8d513c3944ac9666f9ba5ef66b06628354eba681..ac8f1f30269b55e03a8f87e4a35c222f6ddb476f 100644 (file)
@@ -31,6 +31,7 @@
 #include <stdbool.h>
 
 #include <libweston/libweston.h>
+#include "libweston-internal.h"
 #include "text-cursor-position-server-protocol.h"
 #include "shared/helpers.h"