Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion input-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ edition = "2018"
path = "src/lib.rs"

[build-dependencies.bindgen]
version = "0.69"
version = "0.72"
optional = true

# Fix for non-existant feature on nightly `-Z minimal-versions`
Expand Down
1 change: 1 addition & 0 deletions input-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ fn main() {
false => "",
})
.header(header.display().to_string())
.rust_target(bindgen::RustTarget::stable(63, 0).unwrap())
.allowlist_type(r"^libinput_.*$")
.allowlist_function(r"^libinput_.*$")
// Requires `va_list`
Expand Down
2 changes: 1 addition & 1 deletion input-sys/src/bindings/gen_1_11.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.69.2 */
/* automatically generated by rust-bindgen 0.72.1 */

#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion input-sys/src/bindings/gen_1_14.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.69.2 */
/* automatically generated by rust-bindgen 0.72.1 */

#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion input-sys/src/bindings/gen_1_15.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.69.2 */
/* automatically generated by rust-bindgen 0.72.1 */

#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion input-sys/src/bindings/gen_1_19.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.69.2 */
/* automatically generated by rust-bindgen 0.72.1 */

#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion input-sys/src/bindings/gen_1_21.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.69.2 */
/* automatically generated by rust-bindgen 0.72.1 */

#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand Down Expand Up @@ -1121,7 +1121,7 @@
pub fn libinput_ref(libinput: *mut libinput) -> *mut libinput;
}
extern "C" {
#[doc = " @ingroup base\n\n Dereference the libinput context. After this, the context may have been\n destroyed, if the last reference was dereferenced. If so, the context is\n invalid and may not be interacted with.\n\n @bug When the refcount reaches zero, libinput_unref() releases resources\n even if a caller still holds refcounted references to related resources\n (e.g. a libinput_device). When libinput_unref() returns\n NULL, the caller must consider any resources related to that context\n invalid. See https://bugs.freedesktop.org/show_bug.cgi?id=91872.\n\n Example code:\n @code\n li = libinput_path_create_context(&interface, NULL);\n device = libinput_path_add_device(li, \"/dev/input/event0\");\n // get extra reference to device\n libinput_device_ref(device);\n\n // refcount reaches 0, so *all* resources are cleaned up,\n // including device\n libinput_unref(li);\n\n // INCORRECT: device has been cleaned up and must not be used\n // li = libinput_device_get_context(device);\n @endcode\n\n @param libinput A previously initialized libinput context\n @return NULL if context was destroyed otherwise the passed context"]

Check warning on line 1124 in input-sys/src/bindings/gen_1_21.rs

View workflow job for this annotation

GitHub Actions / doc

this URL is not a hyperlink
pub fn libinput_unref(libinput: *mut libinput) -> *mut libinput;
}
extern "C" {
Expand Down Expand Up @@ -1234,7 +1234,7 @@
) -> ::std::os::raw::c_int;
}
extern "C" {
#[doc = " @ingroup device\n\n Return a udev handle to the device that is this libinput device, if any.\n The returned handle has a refcount of at least 1, the caller must call\n <i>udev_device_unref()</i> once to release the associated resources.\n See the [libudev documentation]\n (http://www.freedesktop.org/software/systemd/libudev/) for details.\n\n Some devices may not have a udev device, or the udev device may be\n unobtainable. This function returns NULL if no udev device was available.\n\n Calling this function multiple times for the same device may not\n return the same udev handle each time.\n\n @param device A previously obtained device\n @return A udev handle to the device with a refcount of >= 1 or NULL.\n @retval NULL This device is not represented by a udev device"]

Check warning on line 1237 in input-sys/src/bindings/gen_1_21.rs

View workflow job for this annotation

GitHub Actions / doc

this URL is not a hyperlink
pub fn libinput_device_get_udev_device(device: *mut libinput_device) -> *mut udev_device;
}
extern "C" {
Expand Down Expand Up @@ -1464,7 +1464,7 @@
) -> ::std::os::raw::c_int;
}
extern "C" {
#[doc = " @ingroup config\n\n Apply the 3x3 transformation matrix to absolute device coordinates. This\n matrix has no effect on relative events.\n\n Given a 6-element array [a, b, c, d, e, f], the matrix is applied as\n @code\n [ a b c ] [ x ]\n [ d e f ] * [ y ]\n [ 0 0 1 ] [ 1 ]\n @endcode\n\n The translation component (c, f) is expected to be normalized to the\n device coordinate range. For example, the matrix\n @code\n [ 1 0 1 ]\n [ 0 1 -1 ]\n [ 0 0 1 ]\n @endcode\n moves all coordinates by 1 device-width to the right and 1 device-height\n up.\n\n The rotation matrix for rotation around the origin is defined as\n @code\n [ cos(a) -sin(a) 0 ]\n [ sin(a) cos(a) 0 ]\n [ 0 0 1 ]\n @endcode\n Note that any rotation requires an additional translation component to\n translate the rotated coordinates back into the original device space.\n The rotation matrixes for 90, 180 and 270 degrees clockwise are:\n @code\n 90 deg cw:\t\t180 deg cw:\t\t270 deg cw:\n [ 0 -1 1]\t\t[ -1 0 1]\t\t[ 0 1 0 ]\n [ 1 0 0]\t\t[ 0 -1 1]\t\t[ -1 0 1 ]\n [ 0 0 1]\t\t[ 0 0 1]\t\t[ 0 0 1 ]\n @endcode\n\n @param device The device to configure\n @param matrix An array representing the first two rows of a 3x3 matrix as\n described above.\n\n @return A config status code.\n\n @see libinput_device_config_calibration_has_matrix\n @see libinput_device_config_calibration_get_matrix\n @see libinput_device_config_calibration_get_default_matrix"]

Check warning on line 1467 in input-sys/src/bindings/gen_1_21.rs

View workflow job for this annotation

GitHub Actions / doc

unresolved link to `1`

Check warning on line 1467 in input-sys/src/bindings/gen_1_21.rs

View workflow job for this annotation

GitHub Actions / doc

unresolved link to `y`

Check warning on line 1467 in input-sys/src/bindings/gen_1_21.rs

View workflow job for this annotation

GitHub Actions / doc

unresolved link to `x`
pub fn libinput_device_config_calibration_set_matrix(
device: *mut libinput_device,
matrix: *const f32,
Expand Down
2 changes: 1 addition & 1 deletion input-sys/src/bindings/gen_1_9.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.69.2 */
/* automatically generated by rust-bindgen 0.72.1 */

#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand Down
Loading