diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-25 03:37:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-25 03:37:03 +0000 |
commit | 3194662054cebfefc48c7ff3d3a5d7a3aa988b9a (patch) | |
tree | befdf6ec479a560382f4de45f389e2a6bb517299 /libs/lmo/src/lmo_lualib.h | |
parent | 639f965c4f22c0f17ffadfbcfe1d72ac082a233c (diff) |
libs/lmo: return entries as udata and only create strings on demand
Diffstat (limited to 'libs/lmo/src/lmo_lualib.h')
-rw-r--r-- | libs/lmo/src/lmo_lualib.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/lmo/src/lmo_lualib.h b/libs/lmo/src/lmo_lualib.h index 096fa027f..643511733 100644 --- a/libs/lmo/src/lmo_lualib.h +++ b/libs/lmo/src/lmo_lualib.h @@ -27,6 +27,15 @@ #define LMO_LUALIB_META "lmo" #define LMO_ARCHIVE_META "lmo.archive" +#define LMO_ENTRY_META "lmo.entry" + +struct lmo_luaentry { + lmo_archive_t *archive; + lmo_entry_t *entry; +}; + +typedef struct lmo_luaentry lmo_luaentry_t; + LUALIB_API int luaopen_lmo(lua_State *L); |