aboutsummaryrefslogtreecommitdiff
path: root/os/main.h
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2019-05-26 19:28:27 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2019-05-26 19:28:27 +0100
commitbd77381c27ef5b61bf1c123efef3895b98a7a615 (patch)
treeba798b442305ad4e174d79cf5bb7a822b7e1e2e9 /os/main.h
parenteb4de24523e8f0832daae89a083844c8e9a261e9 (diff)
downloadtinyOS-bd77381c27ef5b61bf1c123efef3895b98a7a615.tar.xz
tinyOS-bd77381c27ef5b61bf1c123efef3895b98a7a615.zip
Proxy keypress from kernel to focused program
Diffstat (limited to 'os/main.h')
-rw-r--r--os/main.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/os/main.h b/os/main.h
new file mode 100644
index 0000000..a632750
--- /dev/null
+++ b/os/main.h
@@ -0,0 +1,13 @@
+#ifndef MAIN_H
+#define MAIN_H
+
+typedef struct
+{
+ char *name;
+ void (*keypress_handler)(unsigned char);
+} Program_t;
+
+void os_start();
+void os_proxy_keypress(unsigned char key);
+
+#endif \ No newline at end of file