|
myMPD
Internal API documentation
|
General disk cache handling. More...
#include "compile_time.h"#include "src/lib/cache/cache_disk.h"#include "src/lib/datetime.h"#include "src/lib/filehandler.h"#include "src/lib/log.h"#include "src/lib/sds_extras.h"#include <dirent.h>#include <errno.h>#include <sys/stat.h>#include <time.h>
Functions | |
| static int | crop_dir (sds cache_basedir, const char *type, int keepdays) |
| void | cache_disk_clear (struct t_config *config) |
| void | cache_disk_crop (struct t_config *config) |
General disk cache handling.
| void cache_disk_clear | ( | struct t_config * | config | ) |
Clears the caches unconditionally
| config | pointer to static config |
| void cache_disk_crop | ( | struct t_config * | config | ) |
Crops the caches respecting the keep_days settings
| config | pointer to static config |
|
static |
Crops a specific cache dir
| cache_basedir | cache basedir |
| type | cache subdir |
| keepdays | expiration in days |