diff options
author | Benji Dial <benji6283@gmail.com> | 2021-03-07 23:19:48 -0500 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-03-07 23:19:48 -0500 |
commit | 1a5ece4f52ef17c7c868e95eb26e98137d5cab6f (patch) | |
tree | 2ab5c639d368d3ec497b464009f0401e71d433f1 /src/user/include/knob | |
parent | 348e1876d25320e6480f2795c9388b2bc080c743 (diff) | |
download | portland-os-1a5ece4f52ef17c7c868e95eb26e98137d5cab6f.tar.gz |
keyboard support in raleigh, word wrap and more in entry widget
Diffstat (limited to 'src/user/include/knob')
-rw-r--r-- | src/user/include/knob/block.h | 3 | ||||
-rw-r--r-- | src/user/include/knob/key.h | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/user/include/knob/block.h b/src/user/include/knob/block.h index 565c334..27cb83b 100644 --- a/src/user/include/knob/block.h +++ b/src/user/include/knob/block.h @@ -28,6 +28,9 @@ bool strequ(const char *a, const char *b) __attribute__ ((pure)); //this replacement happens in place, with no memory allocation void str_trunc_fill(char *str, uint32_t len); +//returns first index of any character of delims or the null terminator in str +uint32_t str_find_any(const char *str, const char *delims) __attribute__ ((pure)); + #ifdef __cplusplus } #endif diff --git a/src/user/include/knob/key.h b/src/user/include/knob/key.h index 90509fc..d532afd 100644 --- a/src/user/include/knob/key.h +++ b/src/user/include/knob/key.h @@ -1,8 +1,16 @@ #ifndef KNOB_KEY_H #define KNOB_KEY_H +#ifdef __cplusplus +extern "C" { +#endif + #include <keypack.h> char key_to_char(struct key_packet kp) __attribute__ ((pure)); +#ifdef __cplusplus +} +#endif + #endif
\ No newline at end of file |