diff options
Diffstat (limited to 'shared.h')
-rw-r--r-- | shared.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |