[vala] linux: bind uinput (userspace input) subsystem



commit d1baf8e277c9ca5f7df7fef0984c1b6a751be09a
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Mon May 30 21:00:58 2011 +0200

    linux: bind uinput (userspace input) subsystem

 vapi/linux.vapi |   55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 54 insertions(+), 1 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 198e6cf..531db08 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -1,6 +1,6 @@
 /* linux.vapi
  *
- * Copyright (C) 2009-2010 Michael 'Mickey' Lauer <mlauer vanille-media de>
+ * Copyright (C) 2009-2011 Michael 'Mickey' Lauer <mlauer vanille-media de>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -3437,6 +3437,59 @@ namespace Linux {
     }
 
     /*
+     * Userspace Input
+     */
+    [CCode (cprefix = "", lower_case_cprefix = "")]
+    namespace UserspaceInput {
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int VERSION;
+
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int EV_UINPUT;
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_FF_UPLOAD;
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_FF_ERASE;
+
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_DEV_CREATE;
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_DEV_DESTROY;
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_SET_EVBIT;
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_SET_KEYBIT;
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_SET_RELBIT;
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_SET_ABSBIT;
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_SET_MSCBIT;
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_SET_LEDBIT;
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_SET_SNDBIT;
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_SET_FFBIT;
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_SET_PHYS;
+        [CCode (cheader_filename = "linux/uinput.h")]
+        public const int UI_SET_SWBIT;
+
+        [CCode (cname = "struct uinput_user_dev", cheader_filename = "linux/uinput.h")]
+        struct UserDevice
+        {
+            string name;
+            Input.Id id;
+            int ff_effects_max;
+            int[] absmax;
+            int[] absmin;
+            int[] absfuzz;
+            int[] absflat;
+        }
+    }
+
+    /*
      * Virtual Terminal
      */
     [CCode (cprefix = "", lower_case_cprefix = "")]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]