diff options
Diffstat (limited to 'src/strings.h')
-rw-r--r-- | src/strings.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/strings.h b/src/strings.h new file mode 100644 index 0000000..757c686 --- /dev/null +++ b/src/strings.h @@ -0,0 +1,18 @@ +#ifndef STRINGS_H +#define STRINGS_H + +typedef void (*table_cb)(const char* str, int tag, void* data); + +int get_color_enum(const char* str); +int get_mode_enum(const char* str); +int get_key_enum(const char* str); + +const char* get_color_str(int tag); +const char* get_mode_str(int tag); +const char* get_key_str(int tag); + +void each_color(table_cb cb, void* data); +void each_mode(table_cb cb, void* data); +void each_key(table_cb cb, void* data); + +#endif |