diff options
author | Alex Auvolat <alex@adnab.me> | 2018-04-01 23:23:34 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-04-01 23:23:34 +0200 |
commit | a36c6528b10cb5b5d48fbf30a941443f738c9dd1 (patch) | |
tree | 19249d98dbe3a55d5f18050797959d7ca64a97bd /src/syslua/lx/protodef.lua | |
parent | 67db86ec53336da886153797deb643483e9596d0 (diff) | |
download | kogata-a36c6528b10cb5b5d48fbf30a941443f738c9dd1.tar.gz kogata-a36c6528b10cb5b5d48fbf30a941443f738c9dd1.zip |
Terminal inside Lua window manager
Diffstat (limited to 'src/syslua/lx/protodef.lua')
-rw-r--r-- | src/syslua/lx/protodef.lua | 29 |
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 |