forked from martinpitt/umockdev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vala: Stop using deprecated input_event.time
Backport the vapi fix [1] for the input_event API change [2], to fix building on 32 bit Alpine (and presumably other distributions). [1] https://gitlab.gnome.org/GNOME/vala/-/commit/dbe4b716a8d79704 [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f Fixes martinpitt#120
- Loading branch information
1 parent
003944f
commit 8376f0c
Showing
3 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[CCode (cprefix = "", lower_case_cprefix = "")] | ||
namespace LinuxFixes { | ||
|
||
[CCode (cprefix = "", lower_case_cprefix = "")] | ||
namespace Input { | ||
|
||
// https://gitlab.gnome.org/GNOME/vala/-/commit/dbe4b716a8d79704 | ||
[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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters