]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
linux: bind uinput (userspace input) subsystem
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Mon, 30 May 2011 19:00:58 +0000 (21:00 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 31 May 2011 19:06:11 +0000 (21:06 +0200)
vapi/linux.vapi

index 198e6cf792336b9138d173dd6f8c80d776952689..531db08f288c7ec342167e9880d6ab6b9ce44cdd 100644 (file)
@@ -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
@@ -3436,6 +3436,59 @@ namespace Linux {
         public const int TIOCSER_TEMT;
     }
 
+    /*
+     * 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
      */