diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2019-05-26 19:28:27 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2019-05-26 19:28:27 +0100 |
| commit | bd77381c27ef5b61bf1c123efef3895b98a7a615 (patch) | |
| tree | ba798b442305ad4e174d79cf5bb7a822b7e1e2e9 /os/main.h | |
| parent | eb4de24523e8f0832daae89a083844c8e9a261e9 (diff) | |
| download | tinyOS-bd77381c27ef5b61bf1c123efef3895b98a7a615.tar.xz tinyOS-bd77381c27ef5b61bf1c123efef3895b98a7a615.zip | |
Proxy keypress from kernel to focused program
Diffstat (limited to 'os/main.h')
| -rw-r--r-- | os/main.h | 13 |
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 |