file
supported_file.hSupported file info.
Classes
- struct SupportedFile
- Metadata for a supported file.
Enums
- enum ZFileType { FILE_TYPE_MIDI, FILE_TYPE_MP3, FILE_TYPE_FLAC, FILE_TYPE_OGG, FILE_TYPE_WAV, FILE_TYPE_DIR, FILE_TYPE_PARENT_DIR, FILE_TYPE_OTHER, NUM_FILE_TYPES }
- File type.
Typedefs
- using ZFileType = enum ZFileType
- File type.
- using SupportedFile = struct SupportedFile
- Metadata for a supported file.
Functions
- auto supported_file_new_from_path(const char* path) -> SupportedFile*
- Creates a new SupportedFile from the given absolute path.
- auto supported_file_type_get_description(ZFileType type) -> char*
- Returns a human readable description of the given file type.
- auto supported_file_clone(SupportedFile* src) -> SupportedFile*
- Clones the given SupportedFile.
- auto supported_file_type_is_supported(ZFileType type) -> int
- Returns if the given type is supported.
- auto supported_file_type_is_audio(ZFileType type) -> int
- Returns if the SupportedFile is an audio file.
- auto supported_file_type_is_midi(ZFileType type) -> int
- Returns if the SupportedFile is a midi file.
- auto supported_file_type_get_ext(ZFileType type) -> const char*
- Returns the most common extension for the given filetype.
- auto supported_file_get_type(const char* file) -> ZFileType
- Returns the file type of the given file path.
- auto supported_file_should_autoplay(const SupportedFile* self) -> NONNULL bool
- Returns whether the given file should auto-play (shorter than 1 min).
- auto supported_file_get_icon_name(const SupportedFile*const self) -> const char*
- Gets the corresponding icon name for the given SupportedFile's type.
- auto supported_file_get_info_text_for_label(const SupportedFile* self) -> NONNULL char*
- Returns a pango markup to be used in GTK labels.
- void supported_file_free(SupportedFile* self)
- Frees the instance and all its members.