summaryrefslogtreecommitdiff
path: root/include/keyboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/keyboard.h')
-rw-r--r--include/keyboard.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/keyboard.h b/include/keyboard.h
index 0827b76..93538ec 100644
--- a/include/keyboard.h
+++ b/include/keyboard.h
@@ -22,6 +22,8 @@
#ifndef DS81_KEYBOARD_H
#define DS81_KEYBOARD_H
+#include <stdio.h>
+
/* Note that the first 40 values purposefully are the keyboard matrix keys.
Note also that they are in display order, not matrix order.
*/
@@ -132,4 +134,9 @@ void SK_DefinePad(SoftKey pad, SoftKey key);
*/
const char *SK_KeyName(SoftKey pad);
+/* Allows the keyboard to save/restore its state from a stream
+*/
+void SK_SaveSnapshot(FILE *fp);
+void SK_LoadSnapshot(FILE *fp);
+
#endif /* DS81_KEYBOARD_H */