diff gui/util/list.c @ 34667:7c447e9db447

Remove global variable pointing to top of playlist. Add a corresponding listMgr command and use it instead.
author ib
date Wed, 22 Feb 2012 10:39:05 +0000
parents 4df4d842d5fb
children 00e8aecfa7ff
line wrap: on
line diff
--- a/gui/util/list.c	Wed Feb 22 01:07:10 2012 +0000
+++ b/gui/util/list.c	Wed Feb 22 10:39:05 2012 +0000
@@ -22,7 +22,7 @@
 #include "list.h"
 #include "string.h"
 
-plItem *plList;
+static plItem *plList;
 static plItem *plCurrent;
 plItem *plLastPlayed;
 
@@ -37,6 +37,10 @@
     switch (cmd) {
     // handle playlist
 
+    case PLAYLIST_GET:
+
+        return plList;
+
     // add item to playlist
     case PLAYLIST_ITEM_ADD:
         if (plList) {