]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
linux: Provide Input.Event.input_event_sec/input_event_usec fields
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 14 Mar 2021 12:16:58 +0000 (13:16 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 18 Mar 2021 09:10:36 +0000 (10:10 +0100)
Mark Input.Event.time as deprecated

See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1152

vapi/linux.vapi

index 25b5188f33d9c37344845317a87e2659f0d49416..2984dfa339c4ffdec81651130cb35bff06c48fb3 100644 (file)
@@ -1644,7 +1644,10 @@ namespace Linux {
 
         [CCode (cname = "struct input_event", has_type_id = false, cheader_filename = "linux/input.h")]
         public struct Event {
+            [Version (deprecated = true, replacement = "Event.input_event_sec and Event.input_event_usec")]
             public Posix.timeval time;
+            public time_t input_event_sec;
+            public long input_event_usec;
             public uint16 type;
             public uint16 code;
             public int32 value;