Skip to content

Commit 5457397

Browse files
committed
input-sys: Prevent braking API changes between 1.28 and 1.29 features
1.28 changes were not published yet, so I'll just retroactively adjust the older version even tho upstream did technically break the API on us
1 parent 09f068e commit 5457397

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

input-sys/include/libinput.1.28.0.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5775,7 +5775,7 @@ enum libinput_config_accel_type {
57755775
enum libinput_config_status
57765776
libinput_config_accel_set_points(struct libinput_config_accel *accel_config,
57775777
enum libinput_config_accel_type accel_type,
5778-
double step, size_t npoints, double *points);
5778+
double step, size_t npoints, const double *points);
57795779

57805780
/**
57815781
* @ingroup config

input-sys/src/bindings/gen_1_28.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ extern "C" {
17041704
accel_type: libinput_config_accel_type,
17051705
step: f64,
17061706
npoints: usize,
1707-
points: *mut f64,
1707+
points: *const f64,
17081708
) -> libinput_config_status;
17091709
}
17101710
extern "C" {

0 commit comments

Comments
 (0)