touchpad: Make touchpad_get_delta() available from other files
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 7 Feb 2014 04:39:21 +0000 (14:39 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 24 Mar 2014 04:56:40 +0000 (14:56 +1000)
No functional changes.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad.c
src/evdev-mt-touchpad.h

index e25997d..73ea8a8 100644 (file)
@@ -174,7 +174,7 @@ tp_estimate_delta(int x0, int x1, int x2, int x3)
        return (x0 + x1 - x2 - x3) / 4;
 }
 
-static void
+void
 tp_get_delta(struct tp_touch *t, double *dx, double *dy)
 {
        if (t->history.count < 4) {
index d12647d..907aec8 100644 (file)
@@ -102,4 +102,7 @@ struct tp_dispatch {
 #define tp_for_each_touch(_tp, _t) \
        for (unsigned int _i = 0; _i < (_tp)->ntouches && (_t = &(_tp)->touches[_i]); _i++)
 
+void
+tp_get_delta(struct tp_touch *t, double *dx, double *dy);
+
 #endif