aboutsummaryrefslogtreecommitdiffstats
path: root/dome_key_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'dome_key_map.h')
-rw-r--r--dome_key_map.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/dome_key_map.h b/dome_key_map.h
index 1206d1d..647c6e5 100644
--- a/dome_key_map.h
+++ b/dome_key_map.h
@@ -12,18 +12,14 @@ typedef enum {
Down,
} HeadphoneButton;
-typedef struct MapKind MapKind;
-
-typedef struct Option_CString Option_CString;
+typedef enum {
+ Map,
+ Command,
+} MapKind;
typedef struct {
const char *action;
const MapKind *kind;
} CKeyActionResult;
-typedef struct {
- Option_CString action;
- MapKind kind;
-} KeyActionResult;
-
const CKeyActionResult *c_run_key_action(const HeadphoneButton *trigger, size_t length);