6bc64d44bb
Signed-off-by: Nathan Owens <ndowens04@gmail.com>
74 lines
1.5 KiB
Diff
74 lines
1.5 KiB
Diff
diff --git utils/ir-ctl/keymap.h utils/ir-ctl/keymap.h
|
|
index f2b2963..51e4440 100644
|
|
--- utils/ir-ctl/keymap.h
|
|
+++ utils/ir-ctl/keymap.h
|
|
@@ -1,6 +1,11 @@
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __KEYMAP_H
|
|
#define __KEYMAP_H
|
|
+#include <stdint.h>
|
|
+#ifndef __error_t_defined
|
|
+# define __error_t_defined 1
|
|
+typedef int error_t;
|
|
+#endif
|
|
|
|
struct keymap {
|
|
struct keymap *next;
|
|
@@ -20,16 +25,16 @@ struct protocol_param {
|
|
|
|
struct scancode_entry {
|
|
struct scancode_entry *next;
|
|
- u_int32_t scancode;
|
|
+ uint32_t scancode;
|
|
char *keycode;
|
|
};
|
|
|
|
struct raw_entry {
|
|
struct raw_entry *next;
|
|
- u_int32_t scancode;
|
|
- u_int32_t raw_length;
|
|
+ uint32_t scancode;
|
|
+ uint32_t raw_length;
|
|
char *keycode;
|
|
- u_int32_t raw[1];
|
|
+ uint32_t raw[1];
|
|
};
|
|
|
|
void free_keymap(struct keymap *map);
|
|
diff --git utils/keytable/keymap.h utils/keytable/keymap.h
|
|
index f2b2963..51e4440 100644
|
|
--- utils/keytable/keymap.h
|
|
+++ utils/keytable/keymap.h
|
|
@@ -1,6 +1,11 @@
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __KEYMAP_H
|
|
#define __KEYMAP_H
|
|
+#include <stdint.h>
|
|
+#ifndef __error_t_defined
|
|
+# define __error_t_defined 1
|
|
+typedef int error_t;
|
|
+#endif
|
|
|
|
struct keymap {
|
|
struct keymap *next;
|
|
@@ -20,16 +25,16 @@ struct protocol_param {
|
|
|
|
struct scancode_entry {
|
|
struct scancode_entry *next;
|
|
- u_int32_t scancode;
|
|
+ uint32_t scancode;
|
|
char *keycode;
|
|
};
|
|
|
|
struct raw_entry {
|
|
struct raw_entry *next;
|
|
- u_int32_t scancode;
|
|
- u_int32_t raw_length;
|
|
+ uint32_t scancode;
|
|
+ uint32_t raw_length;
|
|
char *keycode;
|
|
- u_int32_t raw[1];
|
|
+ uint32_t raw[1];
|
|
};
|
|
|
|
void free_keymap(struct keymap *map);
|