Mercurial > repos > blastem
comparison util.h @ 1484:d82af64c94d2 nuklear_ui
Sort directory listing in Nuklear UI file browser
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 26 Nov 2017 17:33:39 -0800 |
parents | e2bd03ed3190 |
children | 369da70ee2c2 |
comparison
equal
deleted
inserted
replaced
1483:001120e91fed | 1484:d82af64c94d2 |
---|---|
60 char *read_bundled_file(char *name, uint32_t *sizeret); | 60 char *read_bundled_file(char *name, uint32_t *sizeret); |
61 //Retunrs an array of normal files and directories residing in a directory | 61 //Retunrs an array of normal files and directories residing in a directory |
62 dir_entry *get_dir_list(char *path, size_t *numret); | 62 dir_entry *get_dir_list(char *path, size_t *numret); |
63 //Frees a dir list returned by get_dir_list | 63 //Frees a dir list returned by get_dir_list |
64 void free_dir_list(dir_entry *list, size_t numentries); | 64 void free_dir_list(dir_entry *list, size_t numentries); |
65 //Performs a case-insensitive sort by file name on a dir list | |
66 void sort_dir_list(dir_entry *list, size_t num_entries); | |
65 //Gets the modification time of a file | 67 //Gets the modification time of a file |
66 time_t get_modification_time(char *path); | 68 time_t get_modification_time(char *path); |
67 //Recusrively creates a directory if it does not exist | 69 //Recusrively creates a directory if it does not exist |
68 int ensure_dir_exists(char *path); | 70 int ensure_dir_exists(char *path); |
69 //Returns the contents of a symlink in a newly allocated string | 71 //Returns the contents of a symlink in a newly allocated string |