[vala/wip/linux] linux: Update UserspaceInput bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/linux] linux: Update UserspaceInput bindings
- Date: Wed, 7 Aug 2019 06:49:06 +0000 (UTC)
commit 2992c304656f99599d93e582cc33d13881fe4eb5
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Aug 7 08:46:05 2019 +0200
linux: Update UserspaceInput bindings
Fixes https://gitlab.gnome.org/GNOME/vala/issues/830
vapi/linux.vapi | 31 +++++++++++++++++++++----------
1 file changed, 21 insertions(+), 10 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 64b255445..075d93e48 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -4083,8 +4083,10 @@ namespace Linux {
*/
[CCode (cprefix = "", lower_case_cprefix = "")]
namespace UserspaceInput {
- [CCode (cheader_filename = "linux/uinput.h")]
+ [CCode (cheader_filename = "linux/uinput.h", cname = "UINPUT_VERSION")]
public const int VERSION;
+ [CCode (cheader_filename = "linux/uinput.h", cname = "UINPUT_MAX_NAME_SIZE")]
+ public const int MAX_NAME_SIZE;
[CCode (cheader_filename = "linux/uinput.h")]
public const int EV_UINPUT;
@@ -4119,16 +4121,25 @@ namespace Linux {
public const int UI_SET_SWBIT;
[CCode (cname = "struct uinput_user_dev", cheader_filename = "linux/uinput.h")]
- struct UserDevice
- {
- char name[80];
- Input.Id id;
- int ff_effects_max;
- int absmax[64];
- int absmin[64];
- int absfuzz[64];
- int absflat[64];
+ public struct UserDevice {
+ public char name[80];
+ public Input.Id id;
+ public uint32 ff_effects_max;
+ public int32 absmax[64];
+ public int32 absmin[64];
+ public int32 absfuzz[64];
+ public int32 absflat[64];
+ }
+
+ [CCode (cname = "struct uinput_setup", cheader_filename = "linux/uinput.h")]
+ public struct UserSetup {
+ public Input.Id id;
+ public char name[80];
+ public uint32 ff_effects_max;
}
+
+ [CCode (cheader_filename = "linux/uinput.h")]
+ public const int UI_DEV_SETUP;
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]