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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/dome_key_map.h b/dome_key_map.h
index 7bd77ca..633e9b3 100644
--- a/dome_key_map.h
+++ b/dome_key_map.h
@@ -23,6 +23,8 @@ typedef enum {
MapKind_Command,
} MapKind;
+typedef struct State State;
+
typedef struct {
const HeadphoneButton *buttons;
size_t length;
@@ -35,3 +37,7 @@ typedef struct {
} CKeyActionResult;
const CKeyActionResult *c_run_key_action(Trigger trigger, const Trigger *mode);
+
+void state_free(State *ptr);
+
+State *state_new(void);