Album cache creation.
More...
◆ album_cache_create()
| static bool album_cache_create |
( |
struct t_mympd_worker_state * |
mympd_worker_state, |
|
|
rax * |
album_cache |
|
) |
| |
|
static |
Private definitions
Private functions Initializes the album cache
- Parameters
-
| mympd_worker_state | pointer to mympd_worker_state struct |
| album_cache | pointer to empty album_cache |
- Returns
- true on success, else false
◆ album_cache_create_simple()
| static bool album_cache_create_simple |
( |
struct t_mympd_worker_state * |
mympd_worker_state, |
|
|
rax * |
album_cache |
|
) |
| |
|
static |
Initializes the simple album cache. This is faster as the cache_init function, but does not fetch all the album details.
- Parameters
-
| mympd_worker_state | pointer to mympd_worker_state struct |
| album_cache | pointer to empty album_cache |
- Returns
- true on success, else false
◆ mympd_worker_album_cache_create()
| bool mympd_worker_album_cache_create |
( |
struct t_mympd_worker_state * |
mympd_worker_state, |
|
|
bool |
force |
|
) |
| |
Public functions Creates the album cache and returns it to mympd_api thread
- Parameters
-
| mympd_worker_state | pointer to mympd_worker_state struct |
| force | true=force update, false=update only if mpd database is newer then the caches |
- Returns
- true on success else false