summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua/rocklua.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-06-18 13:10:14 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-06-18 13:10:14 +0000
commitbfd8d023db7b6be9dff11a781372c382a27e053b (patch)
tree08e4ded33ef099cbb3063a29573d9d78c93f27bf /apps/plugins/lua/rocklua.c
parentd8cef9c0789427a1f5b0cac1a4601a96d9cf1c78 (diff)
downloadrockbox-bfd8d023db7b6be9dff11a781372c382a27e053b.tar.gz
rockbox-bfd8d023db7b6be9dff11a781372c382a27e053b.zip
FS#11347 by me: *dir LUA functions: luadir module
mkdir and rmdir are now in this module and not in the rockbox API implements the 'dir' iterator to browse directories Based on LuaFileSystem : http://www.keplerproject.org/luafilesystem git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26913 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lua/rocklua.c')
-rw-r--r--apps/plugins/lua/rocklua.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/lua/rocklua.c b/apps/plugins/lua/rocklua.c
index 395cde8d9d..b92c274fb0 100644
--- a/apps/plugins/lua/rocklua.c
+++ b/apps/plugins/lua/rocklua.c
@@ -26,6 +26,7 @@
#include "lualib.h"
#include "rocklib.h"
#include "rockmalloc.h"
+#include "luadir.h"
PLUGIN_HEADER
@@ -39,6 +40,7 @@ static const luaL_Reg lualibs[] = {
{LUA_IOLIBNAME, luaopen_io},
{LUA_LOADLIBNAME, luaopen_package},
{LUA_MATHLIBNAME, luaopen_math},
+ {LUA_DIRLIBNAME, luaopen_luadir},
{NULL, NULL}
};