myMPD
Internal API documentation
Loading...
Searching...
No Matches
cache_disk_lyrics.h File Reference

Lyrics cache handling. More...

#include "dist/sds/sds.h"
#include <stdbool.h>
Include dependency graph for cache_disk_lyrics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

sds cache_disk_lyrics_get_name (const char *cachedir, const char *uri)
 
sds cache_disk_lyrics_write_file (const char *cachedir, const char *uri, const char *str)
 

Detailed Description

Lyrics cache handling.

Function Documentation

◆ cache_disk_lyrics_get_name()

sds cache_disk_lyrics_get_name ( const char *  cachedir,
const char *  uri 
)

Returns the path / basename for an uri to save it in the lyrics cache

Parameters
cachedircache directory
uriuri of the song for the lyrics
Returns
path / basename as newly allocated sds string

◆ cache_disk_lyrics_write_file()

sds cache_disk_lyrics_write_file ( const char *  cachedir,
const char *  uri,
const char *  str 
)

Writes the lyrics (as text buffer) to the lyrics cache, filename is the hash of the full path

Parameters
cachedircache directory
uriuri of the song for the lyrics
strstring to save
Returns
written filename (full path) as newly allocated sds string