|
myMPD
Internal API documentation
|
Lyrics cache handling. More...
#include "dist/sds/sds.h"#include <stdbool.h>

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) |
Lyrics cache handling.
| 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
| cachedir | cache directory |
| uri | uri of the song for the lyrics |
| 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
| cachedir | cache directory |
| uri | uri of the song for the lyrics |
| str | string to save |