Module SkhcConfig.DefaultSource

Operations on the .default section.

Sourcetype t

type of the default section.

Sourceval section : string

section name.

Sourceval missing_artist : string

name used when artist and album-artist are missing.

Sourceval missing_album : string

name used when album is missing.

Sourceval missing_title : string

name used when music's title is missing.

Sourceval init : artist:string -> album:string -> title:string -> t

init ~artist ~album ~title creates a default section with artist, album and title.

Sourceval default : t

default is the section used if the default section is missing from the configuration file.

Sourceval of_section : Section.t -> t

of_section section parse section to create a default section. If an expected key is missing from section, the key is associated with its default value.

Sourceval to_section : t -> Section.t

to_section default serializes default into a section.

Sourceval title : t -> string

title default returns the default name for a missing title.

Sourceval album : t -> string

album default returns the default name for a missing album.

Sourceval artist : t -> string

artist default returns the default name for a missing artist.