aboutsummaryrefslogtreecommitdiff
path: root/src/syslua/lx/protodef.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/syslua/lx/protodef.lua')
-rw-r--r--src/syslua/lx/protodef.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/syslua/lx/protodef.lua b/src/syslua/lx/protodef.lua
new file mode 100644
index 0000000..f7f3fc0
--- /dev/null
+++ b/src/syslua/lx/protodef.lua
@@ -0,0 +1,29 @@
+local protodef = {
+ mouse_event = {
+ -- common/include/proto/mouse.h
+ fmt = 'hhbBBB',
+ len = 8
+ },
+ kbd_event = {
+ -- common/include/proto/keyboard.h
+ fmt = 'HH',
+ len = 4
+ },
+ token = {
+ -- common/include/proto/token.h
+ fmt = 'c16',
+ len = 16
+ }
+}
+
+-- common/include/proto/fb.h
+protodef.fb_info = {
+ fmt = 'lllll',
+ len = 20
+}
+protodef.fb_region = {
+ fmt = 'llll',
+ len = 16
+}
+
+return protodef