--- a/ui/common/wrapper.c Tue Aug 19 21:14:00 2025 +0200 +++ b/ui/common/wrapper.c Wed Aug 20 16:59:53 2025 +0200 @@ -240,3 +240,16 @@ ui_listselection_free(*sel); free(sel); } + +/* ---------------------------- UiFileList ---------------------------- */ + +int ui_filelist_count(UiFileList *flist) { + return flist->nfiles; +} + +char* ui_filelist_get(UiFileList *flist, int index) { + if(index >= 0 && index < flist->nfiles) { + return flist->files[index]; + } + return NULL; +}