]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing: move input related entries to missing_input.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 4 Dec 2018 06:51:52 +0000 (07:51 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 4 Dec 2018 06:51:52 +0000 (07:51 +0100)
src/basic/meson.build
src/basic/missing.h
src/basic/missing_input.h [new file with mode: 0644]

index 596c937d542ed1f8c8def44cb479b0363e5e4e94..656e21527ebb6775b925df2b07139c57c7d5cf47 100644 (file)
@@ -99,6 +99,7 @@ basic_sources = files('''
         missing_if_bridge.h
         missing_if_link.h
         missing_if_tunnel.h
+        missing_input.h
         missing_keyctl.h
         missing_network.h
         missing_securebits.h
index 71a2258c9010d87f4d32cb8798e242a14d41fd05..4db565660d11c8ad7819d065472d44229d67d078 100644 (file)
@@ -9,7 +9,6 @@
 #include <linux/audit.h>
 #include <linux/capability.h>
 #include <linux/falloc.h>
-#include <linux/input.h>
 #include <linux/oom.h>
 #include <net/ethernet.h>
 #include <stdlib.h>
@@ -292,21 +291,6 @@ struct sockaddr_vm {
 #  define SO_PEERGROUPS 59
 #endif
 
-#ifndef EVIOCREVOKE
-#  define EVIOCREVOKE _IOW('E', 0x91, int)
-#endif
-
-#ifndef EVIOCSMASK
-
-struct input_mask {
-        uint32_t type;
-        uint32_t codes_size;
-        uint64_t codes_ptr;
-};
-
-#define EVIOCSMASK _IOW('E', 0x93, struct input_mask)
-#endif
-
 #ifndef DRM_IOCTL_SET_MASTER
 #  define DRM_IOCTL_SET_MASTER _IO('d', 0x1e)
 #endif
@@ -392,23 +376,6 @@ struct input_mask {
 #define KCMP_FILE 0
 #endif
 
-#ifndef INPUT_PROP_POINTING_STICK
-#define INPUT_PROP_POINTING_STICK 0x05
-#endif
-
-#ifndef INPUT_PROP_ACCELEROMETER
-#define INPUT_PROP_ACCELEROMETER  0x06
-#endif
-
-#ifndef BTN_DPAD_UP
-#define BTN_DPAD_UP 0x220
-#define BTN_DPAD_RIGHT 0x223
-#endif
-
-#ifndef KEY_ALS_TOGGLE
-#define KEY_ALS_TOGGLE 0x230
-#endif
-
 #ifndef PR_CAP_AMBIENT
 #define PR_CAP_AMBIENT 47
 #endif
@@ -516,5 +483,6 @@ struct statx {
 #endif
 
 #include "missing_btrfs_tree.h"
+#include "missing_input.h"
 #include "missing_network.h"
 #include "missing_syscall.h"
diff --git a/src/basic/missing_input.h b/src/basic/missing_input.h
new file mode 100644 (file)
index 0000000..93cdf9a
--- /dev/null
@@ -0,0 +1,44 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
+#pragma once
+
+#include <linux/input.h>
+
+/* linux@c7dc65737c9a607d3e6f8478659876074ad129b8 (3.12) */
+#ifndef EVIOCREVOKE
+#define EVIOCREVOKE _IOW('E', 0x91, int)
+#endif
+
+/* linux@06a16293f71927f756dcf37558a79c0b05a91641 (4.4) */
+#ifndef EVIOCSMASK
+struct input_mask {
+        uint32_t type;
+        uint32_t codes_size;
+        uint64_t codes_ptr;
+};
+
+#define EVIOCGMASK _IOR('E', 0x92, struct input_mask)
+#define EVIOCSMASK _IOW('E', 0x93, struct input_mask)
+#endif
+
+/* linux@7611392fe8ff95ecae528b01a815ae3d72ca6b95 (3.17) */
+#ifndef INPUT_PROP_POINTING_STICK
+#define INPUT_PROP_POINTING_STICK 0x05
+#endif
+
+/* linux@500d4160abe9a2e88b12e319c13ae3ebd1e18108 (4.0) */
+#ifndef INPUT_PROP_ACCELEROMETER
+#define INPUT_PROP_ACCELEROMETER  0x06
+#endif
+
+/* linux@d09bbfd2a8408a995419dff0d2ba906013cf4cc9 (3.11) */
+#ifndef BTN_DPAD_UP
+#define BTN_DPAD_UP    0x220
+#define BTN_DPAD_DOWN  0x221
+#define BTN_DPAD_LEFT  0x222
+#define BTN_DPAD_RIGHT 0x223
+#endif
+
+/* linux@358f24704f2f016af7d504b357cdf32606091d07 (3.13) */
+#ifndef KEY_ALS_TOGGLE
+#define KEY_ALS_TOGGLE 0x230
+#endif