[vala/wip/linux] linux: Add more and update UserspaceInput bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/linux] linux: Add more and update UserspaceInput bindings
- Date: Wed, 7 Aug 2019 14:32:01 +0000 (UTC)
commit 49d2ba4770b03489fe3a38146e1106b9a737c09c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Aug 7 08:46:05 2019 +0200
linux: Add more and update UserspaceInput bindings
Fixes https://gitlab.gnome.org/GNOME/vala/issues/830
vapi/linux.vapi | 45 +++++++++++++++++++++++++++++++++++----------
1 file changed, 35 insertions(+), 10 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 64b255445..a231bb652 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,39 @@ 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;
+
+ [CCode (cname = "struct uinput_abs_setup", cheader_filename = "linux/uinput.h")]
+ public struct AbsSetup {
+ public uint16 code;
+ public Input.AbsInfo absinfo;
}
+
+ [CCode (cheader_filename = "linux/uinput.h")]
+ public const int UI_ABS_SETUP;
+
+ [CCode (cheader_filename = "linux/uinput.h")]
+ public static int UI_GET_SYSNAME (int len);
+ [CCode (cheader_filename = "linux/uinput.h")]
+ public const int UI_GET_VERSION;
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]