Base definitions shared by every core module: error codes, memory, logging, locks.
#define CORE_PATH_MAX
Maximum path length used by the core (bytes, UTF-8, including terminator).
Definition base.h:39
const fs_entry_t * fs_listing_get(const fs_listing_t *l, uint32_t index)
void fs_listing_free(fs_listing_t *l)
uint32_t fs_listing_count(const fs_listing_t *l)
fs_listing_t * fs_list_dir(const char *path, uint32_t max_entries)
Read and sort a directory. Returns NULL on error. Limit protects RAM on huge folders.
uint32_t fs_listing_audio_paths(const fs_listing_t *l, const char *dir, char(*out)[CORE_PATH_MAX], uint32_t max)
Paths of all audio files in this directory (not recursive) in display order.
bool fs_listing_truncated(const fs_listing_t *l)
True when the directory has entries the listing left out: more than max_entries, or memory ran out wh...
struct fs_listing fs_listing_t
Definition fsbrowse.h:22
fs_entry_type_t
Definition fsbrowse.h:14
@ FS_ENTRY_DIR
Definition fsbrowse.h:14
@ FS_ENTRY_AUDIO
Definition fsbrowse.h:14
@ FS_ENTRY_PLAYLIST
Definition fsbrowse.h:14
@ FS_ENTRY_CUE
Definition fsbrowse.h:14
uint32_t fs_listing_find_letter(const fs_listing_t *l, uint32_t letter)
uint32_t size
bytes (files)
Definition fsbrowse.h:19
fs_entry_type_t type
Definition fsbrowse.h:17