1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/plugins/lua
Albert Bloomfield 885ecf8327 Add playlist wrappers for lua
adds wrappers for the functions playlist_sync, playlist_remove_all_tracks, and playlist_insert_track, playlist_insert_directory
playlist_{sync,remove_all_tracks} take no arguments
playlist_insert_{track,directory} only have one required argument (either the filename or directory name)
They take as optional arguments position, queue, and either sync or recurse

They all just pass NULL to work with the current playlist

also adds constants for:
PLAYLIST_PREPEND,
PLAYLIST_INSERT,
PLAYLIST_INSERT_LAST,
PLAYLIST_INSERT_FIRST,
PLAYLIST_INSERT_SHUFFLED,
PLAYLIST_REPLACE, and
PLAYLIST_INSERT_LAST_SHUFFLED

Change-Id: Ib7464cba50e7a250edf092e50668f11010f2b737
Reviewed-on: http://gerrit.rockbox.org/109
Reviewed-by: Thomas Martitz <kugel@rockbox.org>
2012-02-17 12:02:22 +01:00
..
action_helper.pl Lua: Add pluginlib_actions wrapper for lua scripts. 2012-01-27 09:15:05 +01:00
button_helper.pl Lua: always expose BUTTON_TOUCHSCREEN and remove BUTTON_ constants from rocklib.c 2009-07-03 23:03:07 +00:00
fscanf.c Lua fscanf: use pointer of file descriptor instead of file descriptor itself to avoid 64-bit pointer<->int clash (aka fix yellow). 2010-02-13 14:51:38 +00:00
gmtime.c Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes). 2010-05-06 21:04:40 +00:00
lapi.c
lapi.h
lauxlib.c Lua: add the package library 2009-06-25 13:26:05 +00:00
lauxlib.h * read_bmp_*(): add FORMAT_RETURN_SIZE 2009-05-25 11:12:27 +00:00
lbaselib.c
lbitlib.c Correct the includes; the old way broke parallel builds. 2009-06-09 11:23:25 +00:00
lcode.c
lcode.h
ldebug.c
ldebug.h
ldo.c Commit FS#9174: Lua scripting language by Dan Everton 2009-05-21 19:01:41 +00:00
ldo.h
ldump.c
lfunc.c Commit FS#9174: Lua scripting language by Dan Everton 2009-05-21 19:01:41 +00:00
lfunc.h
lgc.c
lgc.h
liolib.c Make open() posix compliant api-wise. A few calls (those with O_CREAT) need the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter. 2010-05-06 17:35:13 +00:00
llex.c Lua: 2009-05-22 01:03:22 +00:00
llex.h
llimits.h
lmathlib.c Lua: add parts of the math library (all floating point functions are #ifdef'ed out) 2009-10-23 10:49:55 +00:00
lmem.c Commit FS#9174: Lua scripting language by Dan Everton 2009-05-21 19:01:41 +00:00
lmem.h
loadlib.c Lua: because Rockbox doesn't support any current working directory functionality, 'hack' loadlib so it replace '$' in LUA_PATH_DEFAULT with the directory wherein the current script is. 2009-07-01 17:01:22 +00:00
lobject.c Revert r21863 partly: fixes Lua 2009-07-15 15:16:55 +00:00
lobject.h
lopcodes.c
lopcodes.h
loslib.c Fix two warnings that appear with gcc4.4.3. The one in recording.c ("compact_view is used uninitialized" seems to be false positive unfortunately). 2010-03-08 23:56:54 +00:00
lparser.c
lparser.h
lstate.c
lstate.h
lstring.c Commit FS#9174: Lua scripting language by Dan Everton 2009-05-21 19:01:41 +00:00
lstring.h
lstrlib.c Revert r21863 partly: fixes Lua 2009-07-15 15:16:55 +00:00
ltable.c
ltable.h
ltablib.c
ltm.c
ltm.h
lua.h
lua.make Lua: Add pluginlib_actions wrapper for lua scripts. 2012-01-27 09:15:05 +01:00
luaconf.h Lua: implement the ^ and % operators 2009-07-27 16:06:51 +00:00
luadir.c Ged rid of uisimulator/common/io.c for android builds. 2010-09-01 21:29:34 +00:00
luadir.h FS#11347 by me: *dir LUA functions: luadir module 2010-06-18 13:10:14 +00:00
lualib.h Lua: add bitlib (makes bitwise operators possible) 2009-06-01 22:02:18 +00:00
lundump.c
lundump.h
lvm.c
lvm.h
lzio.c
lzio.h
Makefile FS#12144, Use -fPIC -fvisibility=hidden only for plugins on sim and app builds and enable it for 32 bit too. Fixes linking errors on simbuilds. 2011-06-07 11:56:23 +00:00
malloc.c Fix 'unused-but-set-variable' warnings (doom, lua) 2011-06-17 00:14:58 +00:00
README Lua: add support for os library 2009-05-27 22:48:50 +00:00
rockaux.c Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with #if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). 2010-06-21 16:53:00 +00:00
rockconf.h Move setjmp to lib and add setjmp for sh (imported from newlib) and compile it as separate library. 2010-08-24 12:38:42 +00:00
rocklib.c Add playlist wrappers for lua 2012-02-17 12:02:22 +01:00
rocklib.h Lua: because Rockbox doesn't support any current working directory functionality, 'hack' loadlib so it replace '$' in LUA_PATH_DEFAULT with the directory wherein the current script is. 2009-07-01 17:01:22 +00:00
rocklib_aux.pl FS#11347 by me: *dir LUA functions: luadir module 2010-06-18 13:10:14 +00:00
rocklibc.h Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with #if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). 2010-06-21 16:53:00 +00:00
rocklua.c Second try: Introduce plugin_crt0.c that every plugin links. 2010-08-24 14:30:46 +00:00
rockmalloc.c
rockmalloc.h lua: make DEBUG undefined by default, as doc states 2010-07-11 16:46:45 +00:00
SOURCES FS#11347 by me: *dir LUA functions: luadir module 2010-06-18 13:10:14 +00:00
strcspn.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
strftime.c Fix yellow & red 2009-05-27 23:02:17 +00:00
strncat.c
strpbrk.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
strstr.c
strtol.c Commit FS#9174: Lua scripting language by Dan Everton 2009-05-21 19:01:41 +00:00
strtoul.c

The following files are (with slight modifications for Rockbox) from dietlibc
version 0.31 which is licensed under the GPL version 2:

    gmtime.c
    strcspn.c
    strftime.c
    strncat.c
    strpbrk.c
    strtol.c
    strtoul.c
    strstr.c

The malloc routine is Doug Lea's malloc with the following license:

  Version 2.8.3 Thu Sep 22 11:16:15 2005  Doug Lea  (dl at gee)

  This is a version (aka dlmalloc) of malloc/free/realloc written by
  Doug Lea and released to the public domain, as explained at
  http://creativecommons.org/licenses/publicdomain.  Send questions,
  comments, complaints, performance data, etc to dl@cs.oswego.edu