filter: move the pointer_accelerator struct into the header
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 10 Apr 2018 04:49:56 +0000 (14:49 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 18 Apr 2018 06:15:38 +0000 (16:15 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/filter-private.h
src/filter.c

index 10be823..4779e8f 100644 (file)
@@ -71,6 +71,23 @@ struct pointer_trackers {
        struct pointer_delta_smoothener *smoothener;
 };
 
+struct pointer_accelerator {
+       struct motion_filter base;
+
+       accel_profile_func_t profile;
+
+       double velocity;        /* units/us */
+       double last_velocity;   /* units/us */
+
+       struct pointer_trackers trackers;
+
+       double threshold;       /* units/us */
+       double accel;           /* unitless factor */
+       double incline;         /* incline of the function */
+
+       int dpi;
+};
+
 void init_trackers(struct pointer_trackers *trackers,
                   size_t ntrackers);
 void free_trackers(struct pointer_trackers *trackers);
index ff3f7dd..5a593e1 100644 (file)
@@ -117,23 +117,6 @@ filter_get_type(struct motion_filter *filter)
 #define MOTION_TIMEOUT         ms2us(1000)
 #define NUM_POINTER_TRACKERS   16
 
-struct pointer_accelerator {
-       struct motion_filter base;
-
-       accel_profile_func_t profile;
-
-       double velocity;        /* units/us */
-       double last_velocity;   /* units/us */
-
-       struct pointer_trackers trackers;
-
-       double threshold;       /* units/us */
-       double accel;           /* unitless factor */
-       double incline;         /* incline of the function */
-
-       int dpi;
-};
-
 struct pointer_accelerator_flat {
        struct motion_filter base;