| 238 |
238 |
| 239 void ui_list_selection_free(UiListSelection *sel) { |
239 void ui_list_selection_free(UiListSelection *sel) { |
| 240 ui_listselection_free(*sel); |
240 ui_listselection_free(*sel); |
| 241 free(sel); |
241 free(sel); |
| 242 } |
242 } |
| |
243 |
| |
244 /* ---------------------------- UiFileList ---------------------------- */ |
| |
245 |
| |
246 int ui_filelist_count(UiFileList *flist) { |
| |
247 return flist->nfiles; |
| |
248 } |
| |
249 |
| |
250 char* ui_filelist_get(UiFileList *flist, int index) { |
| |
251 if(index >= 0 && index < flist->nfiles) { |
| |
252 return flist->files[index]; |
| |
253 } |
| |
254 return NULL; |
| |
255 } |