#include "xfilepicker.h"
Go to the source code of this file.
Functions | |
int | fp_get_files (FilePicker *filepicker, char *path, int get_dirs) |
fp_get_files - fill file_names and dir_names with the results from readdir path More... | |
void | fp_free (FilePicker *filepicker) |
fp_free - release all memory used by the filepicker More... | |
void | fp_init (FilePicker *filepicker, const char *path) |
fp_init - set default values used by the filepicker More... | |
void fp_free | ( | FilePicker * | filepicker | ) |
fp_free - release all memory used by the filepicker
*filepicker | - pointer to the struct to be released |
Definition at line 176 of file xfilepicker.c.
int fp_get_files | ( | FilePicker * | filepicker, |
char * | path, | ||
int | get_dirs | ||
) |
fp_get_files - fill file_names and dir_names with the results from readdir path
*filepicker | - pointer to the struct holding the list pointers |
*path | - the path to read from |
get_dirs | - 0 = only read files 1 = refill the directory buffer as well |
Definition at line 131 of file xfilepicker.c.
void fp_init | ( | FilePicker * | filepicker, |
const char * | path | ||
) |
fp_init - set default values used by the filepicker
*filepicker | - pointer to the struct to alocate |
*path | - the path to read from |
Definition at line 184 of file xfilepicker.c.
References asprintf(), FilePicker::dir_counter, FilePicker::dir_names, FilePicker::file_counter, FilePicker::file_names, FilePicker::filter, FilePicker::path, FilePicker::selected_file, FilePicker::show_hidden, and FilePicker::use_filter.