myMPD
Internal API documentation
|
Image cache handling. More...
#include "dist/sds/sds.h"
#include <stdbool.h>
Go to the source code of this file.
Functions | |
sds | cache_disk_images_get_basename (const char *cachedir, const char *type, const char *uri, int offset) |
sds | cache_disk_images_write_file (sds cachedir, const char *type, const char *uri, const char *mime_type, sds binary, int offset) |
Image cache handling.
sds cache_disk_images_get_basename | ( | const char * | cachedir, |
const char * | type, | ||
const char * | uri, | ||
int | offset | ||
) |
Returns the path / basename for an uri to save it in the image cache
cachedir | cache directory |
type | image type |
uri | uri of the song for the cover |
offset | number of the coverimage |
sds cache_disk_images_write_file | ( | sds | cachedir, |
const char * | type, | ||
const char * | uri, | ||
const char * | mime_type, | ||
sds | binary, | ||
int | offset | ||
) |
Writes the image (as binary buffer) to the image cache, filename is the hash of the full path
cachedir | cache directory |
type | image type |
uri | uri of the song for the cover |
mime_type | mime_type of binary buffer |
binary | binary data to save |
offset | number of the coverimage |