Changes in uspace/lib/ui/src/filelist.c [accdf882:2309891] in mainline
- File:
-
- 1 edited
-
uspace/lib/ui/src/filelist.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/filelist.c
raccdf882 r2309891 349 349 goto error; 350 350 } 351 352 ui_file_list_clear_entries(flist); 351 353 352 354 if (str_cmp(ndir, "/") != 0) { … … 422 424 } 423 425 426 /** Return path to the current directory. 427 * 428 * @return Path to current directory or @c NULL if out of memory 429 */ 430 char *ui_file_list_get_dir(ui_file_list_t *flist) 431 { 432 return str_dup(flist->dir); 433 } 434 435 /** Re-read file list from directory. 436 * 437 * @param flist File list 438 * @return EOK on success or an error code 439 */ 440 errno_t ui_file_list_refresh(ui_file_list_t *flist) 441 { 442 errno_t rc; 443 ui_list_pos_t pos; 444 445 ui_list_save_pos(flist->list, &pos); 446 rc = ui_file_list_read_dir(flist, flist->dir); 447 if (rc != EOK) 448 return rc; 449 ui_list_restore_pos(flist->list, &pos); 450 return EOK; 451 } 452 424 453 /** Sort file list entries. 425 454 * … … 593 622 return ENOMEM; 594 623 595 ui_file_list_clear_entries(flist);596 597 624 rc = ui_file_list_read_dir(flist, dirname); 598 625 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.
