missing: use integer types used by kernel

By using them, we can decrease included headers except linux/types.h.
This commit is contained in:
Yu Watanabe
2018-12-06 13:24:00 +01:00
parent 666a84eaca
commit 9cb6c6ecb0
2 changed files with 24 additions and 23 deletions
+4 -3
View File
@@ -2,6 +2,7 @@
#pragma once
#include <linux/input.h>
#include <linux/types.h>
/* linux@c7dc65737c9a607d3e6f8478659876074ad129b8 (3.12) */
#ifndef EVIOCREVOKE
@@ -11,9 +12,9 @@
/* linux@06a16293f71927f756dcf37558a79c0b05a91641 (4.4) */
#ifndef EVIOCSMASK
struct input_mask {
uint32_t type;
uint32_t codes_size;
uint64_t codes_ptr;
__u32 type;
__u32 codes_size;
__u64 codes_ptr;
};
#define EVIOCGMASK _IOR('E', 0x92, struct input_mask)