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

General disk cache handling. More...

#include "src/lib/config_def.h"
#include <stdbool.h>
Include dependency graph for cache_disk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  cache_disk_conf { CACHE_DISK_NO_PRUNE = -1 , CACHE_DISK_DISABLED = 0 }
 

Functions

void cache_disk_clear (struct t_config *config)
 
void cache_disk_crop (struct t_config *config)
 

Detailed Description

General disk cache handling.

Enumeration Type Documentation

◆ cache_disk_conf

Disk cache config

Enumerator
CACHE_DISK_NO_PRUNE 

Do not prune the cache.

CACHE_DISK_DISABLED 

Cache is disbled.

Function Documentation

◆ cache_disk_clear()

void cache_disk_clear ( struct t_config config)

Clears the caches unconditionally

Parameters
configpointer to static config

◆ cache_disk_crop()

void cache_disk_crop ( struct t_config config)

Crops the caches respecting the keep_days settings

Parameters
configpointer to static config