chiark / gitweb /
udev: move the KEY_* defines to missing.h (#6278)
[elogind.git] / src / basic / missing.h
index 4bac23f731ef2bbdddcc79034e3cb65461bdc860..24c6d820bd84690f62e07985d4c4c8b215c7bc86 100644 (file)
@@ -1080,6 +1080,15 @@ struct input_mask {
 #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
 #endif // 0
 
 #ifndef HAVE_KEY_SERIAL_T
@@ -1102,6 +1111,10 @@ typedef int32_t key_serial_t;
 #define KEYCTL_DESCRIBE 6
 #endif
 
+#ifndef KEYCTL_LINK
+#define KEYCTL_LINK 8
+#endif
+
 #ifndef KEYCTL_READ
 #define KEYCTL_READ 11
 #endif