From c420b38a5a4bac32b1086e0359e5f5646880d9f4 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sat, 15 Aug 2015 22:43:32 +0200 Subject: Add basic transmit support (WIP) --- shared.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'shared.h') diff --git a/shared.h b/shared.h index 7dfcfca..1857555 100644 --- a/shared.h +++ b/shared.h @@ -22,4 +22,15 @@ extern struct linux_input_keycode linux_input_keycodes[]; struct linux_input_keycode *get_linux_keycode_by_name(const char *name); +int strtol_strict(const char *str, int *result); + +int strtoull_strict(const char *str, uint64_t *result); + +extern uint8_t const byte_rev_table[256]; + +static inline uint8_t bitrev8(uint8_t byte) +{ + return byte_rev_table[byte]; +} + #endif -- cgit v1.2.3