Lines Matching refs:files
500 ULIST *files = NULL; in load_images() local
510 err = uListInit(&files, 50, 0); in load_images()
512 *rfiles = files; in load_images()
516 files = *rfiles; in load_images()
551 err = uListAppend(files, strdup(ppath)); in load_images()
560 uListDestroy(&files, ULIST_FREE); in load_images()
564 *rfiles = files; in load_images()
726 ULIST *files = NULL; in dowork_picture() local
778 err = load_images(path, &files, NULL, 0); in dowork_picture()
780 err = uListSort(files, alpha_sort); in dowork_picture()
784 for (x = 0; x < uListLength(files); x++) in dowork_picture()
786 err = uListGet(files, x, (void *)&name); in dowork_picture()
799 err = uListGet(files, i-x, (void *)&name); in dowork_picture()
807 if (i + x > uListLength(files)) break; in dowork_picture()
808 err = uListGet(files, i+x, (void *)&name); in dowork_picture()
851 uListDestroy(&files, ULIST_FREE); in dowork_picture()
876 ULIST *files = NULL; in dowork_album_overview() local
898 err = load_images(path, &files, NULL, 1); in dowork_album_overview()
900 err = uListSort(files, alpha_sort); in dowork_album_overview()
903 err = hdf_set_int_value(cgi->hdf, buf, uListLength(files)); in dowork_album_overview()
905 for (x = 0; (x < 4) && (x < uListLength(files)); x++) in dowork_album_overview()
907 err = uListGet(files, x, (void *)&name); in dowork_album_overview()
913 uListDestroy(&files, ULIST_FREE); in dowork_album_overview()
931 ULIST *files = NULL; in dowork_album() local
962 err = load_images(path, &files, NULL, 0); in dowork_album()
964 err = uListSort(files, alpha_sort); in dowork_album()
966 err = hdf_set_int_value(cgi->hdf, "Album.Count", uListLength(files)); in dowork_album()
968 if (start > uListLength(files)) start = 0; in dowork_album()
970 if (next > uListLength(files)) next = uListLength(files); in dowork_album()
973 last = uListLength(files) - per_page; in dowork_album()
985 err = uListGet(files, x, (void *)&name); in dowork_album()
991 uListDestroy(&files, ULIST_FREE); in dowork_album()