From: Michael 'Mickey' Lauer Date: Mon, 30 May 2011 19:00:58 +0000 (+0200) Subject: linux: bind uinput (userspace input) subsystem X-Git-Tag: 0.12.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68006b71b651c15c65ca54dd28eb342b4efbb096;p=thirdparty%2Fvala.git linux: bind uinput (userspace input) subsystem --- diff --git a/vapi/linux.vapi b/vapi/linux.vapi index 198e6cf79..531db08f2 100644 --- a/vapi/linux.vapi +++ b/vapi/linux.vapi @@ -1,6 +1,6 @@ /* linux.vapi * - * Copyright (C) 2009-2010 Michael 'Mickey' Lauer + * Copyright (C) 2009-2011 Michael 'Mickey' Lauer * * 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 */