diff options
author | Ferenc Wágner <wferi@niif.hu> | 2014-07-03 15:38:21 +0200 |
---|---|---|
committer | Ferenc Wágner <wferi@niif.hu> | 2014-10-11 21:56:01 +0200 |
commit | c141c539e233095176300db0ead76531c14a7e47 (patch) | |
tree | dbb798cedc0e8e4be98442d1b467c4bbb6a1340e | |
parent | 5eda1dbc26e34e198ee8ad88931cd07e085a88fa (diff) | |
download | syslinux-c141c539e233095176300db0ead76531c14a7e47.tar.gz syslinux-c141c539e233095176300db0ead76531c14a7e47.tar.xz syslinux-c141c539e233095176300db0ead76531c14a7e47.zip |
lua: add the IMAGE_TYPE table to the syslinux module
Signed-off-by: Ferenc Wágner <wferi@niif.hu>
-rw-r--r-- | com32/lua/src/syslinux.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/com32/lua/src/syslinux.c b/com32/lua/src/syslinux.c index 5e57db0a..f17faf32 100644 --- a/com32/lua/src/syslinux.c +++ b/com32/lua/src/syslinux.c @@ -521,5 +521,18 @@ LUALIB_API int luaopen_syslinux(lua_State * L) export_key (DELETE); lua_setfield (L, -2, "KEY"); + lua_newtable (L); +#define export_image_type(x) lua_pushinteger (L, IMAGE_TYPE_##x); lua_setfield (L, -2, #x); + export_image_type (KERNEL); + export_image_type (LINUX); + export_image_type (BOOT); + export_image_type (BSS); + export_image_type (PXE); + export_image_type (FDIMAGE); + export_image_type (COM32); + export_image_type (CONFIG); + export_image_type (LOCALBOOT); + lua_setfield (L, -2, "IMAGE_TYPE"); + return 1; } |