summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklib.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/rocklib.c')
-rw-r--r--apps/plugins/lua/rocklib.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c
index 8efaaab169..070fdb4991 100644
--- a/apps/plugins/lua/rocklib.c
+++ b/apps/plugins/lua/rocklib.c
@@ -317,13 +317,13 @@ RB_WRAP(splash_scroller)
317RB_WRAP(playlist) 317RB_WRAP(playlist)
318{ 318{
319 /* just passes NULL to work with the current playlist */ 319 /* just passes NULL to work with the current playlist */
320 enum e_playlist {PLAYL_AMOUNT = 0, PLAYL_ADD, PLAYL_CREATE, 320 enum e_playlist {PLAYL_AMOUNT = 0, PLAYL_CREATE,
321 PLAYL_START, PLAYL_RESUMETRACK, PLAYL_RESUME, 321 PLAYL_START, PLAYL_RESUMETRACK, PLAYL_RESUME,
322 PLAYL_SHUFFLE, PLAYL_SYNC, PLAYL_REMOVEALLTRACKS, 322 PLAYL_SHUFFLE, PLAYL_SYNC, PLAYL_REMOVEALLTRACKS,
323 PLAYL_INSERTTRACK, PLAYL_INSERTDIRECTORY, PLAYL_INSERTPLAYL, 323 PLAYL_INSERTTRACK, PLAYL_INSERTDIRECTORY, PLAYL_INSERTPLAYL,
324 PLAYL_ECOUNT}; 324 PLAYL_ECOUNT};
325 325
326 const char *playlist_option[] = {"amount", "add", "create", "start", "resume_track", 326 const char *playlist_option[] = {"amount", "create", "start", "resume_track",
327 "resume", "shuffle", "sync", "remove_all_tracks", 327 "resume", "shuffle", "sync", "remove_all_tracks",
328 "insert_track", "insert_directory", "insert_playlist", NULL}; 328 "insert_track", "insert_directory", "insert_playlist", NULL};
329 329
@@ -339,10 +339,6 @@ RB_WRAP(playlist)
339 case PLAYL_AMOUNT: 339 case PLAYL_AMOUNT:
340 result = rb->playlist_amount(); 340 result = rb->playlist_amount();
341 break; 341 break;
342 case PLAYL_ADD:
343 filename = luaL_checkstring(L, 2);
344 result = rb->playlist_add(filename);
345 break;
346 case PLAYL_CREATE: 342 case PLAYL_CREATE:
347 dir = luaL_checkstring(L, 2); 343 dir = luaL_checkstring(L, 2);
348 filename = luaL_checkstring(L, 3); 344 filename = luaL_checkstring(L, 3);