diff options
author | David Härdeman <david@hardeman.nu> | 2015-08-15 22:43:32 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2015-08-15 22:43:32 +0200 |
commit | c420b38a5a4bac32b1086e0359e5f5646880d9f4 (patch) | |
tree | ffcf65dcc3d2e905665f82f57fcc48bccefa4a58 /shared.h | |
parent | 6d12cb6b9e9d7b67521f6ca999c933e1555a3226 (diff) |
Add basic transmit support (WIP)
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 |