comparison gui/util/list.c @ 34668:00e8aecfa7ff

Remove global variable pointing to top of URL list. Add a corresponding listMgr command and use it instead.
author ib
date Wed, 22 Feb 2012 10:53:00 +0000
parents 7c447e9db447
children 697aaedfe59e
comparison
equal deleted inserted replaced
34667:7c447e9db447 34668:00e8aecfa7ff
24 24
25 static plItem *plList; 25 static plItem *plList;
26 static plItem *plCurrent; 26 static plItem *plCurrent;
27 plItem *plLastPlayed; 27 plItem *plLastPlayed;
28 28
29 urlItem *urlList; 29 static urlItem *urlList;
30 30
31 void *listMgr(int cmd, void *data) 31 void *listMgr(int cmd, void *data)
32 { 32 {
33 plItem *item = (plItem *)data; 33 plItem *item = (plItem *)data;
34 urlItem *url_item = (urlItem *)data; 34 urlItem *url_item = (urlItem *)data;
154 } 154 }
155 plCurrent = NULL; 155 plCurrent = NULL;
156 return NULL; 156 return NULL;
157 157
158 // handle url 158 // handle url
159
160 case URLLIST_GET:
161
162 return urlList;
163
159 case URLLIST_ITEM_ADD: 164 case URLLIST_ITEM_ADD:
160 if (urlList) { 165 if (urlList) {
161 urlItem *next_url = urlList; 166 urlItem *next_url = urlList;
162 is_added = 0; 167 is_added = 0;
163 168