myMPD
Internal API documentation
Loading...
Searching...
No Matches
album_cache.c File Reference

Album cache creation. More...

#include "compile_time.h"
#include "src/mympd_worker/album_cache.h"
#include "src/lib/album.h"
#include "src/lib/cache/cache_rax_album.h"
#include "src/lib/datetime.h"
#include "src/lib/filehandler.h"
#include "src/lib/json/json_rpc.h"
#include "src/lib/log.h"
#include "src/lib/msg_queue.h"
#include "src/lib/sds_extras.h"
#include "src/lib/utility.h"
#include "src/mympd_client/errorhandler.h"
#include "src/mympd_client/search.h"
#include "src/mympd_client/tags.h"
#include <inttypes.h>
#include <stdbool.h>
#include <string.h>
Include dependency graph for album_cache.c:

Functions

static bool album_cache_create (struct t_mympd_worker_state *mympd_worker_state, rax *album_cache)
 
static bool album_cache_create_simple (struct t_mympd_worker_state *mympd_worker_state, rax *album_cache)
 
bool mympd_worker_album_cache_create (struct t_mympd_worker_state *mympd_worker_state, bool force)
 

Detailed Description

Album cache creation.

Function Documentation

◆ 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_statepointer to mympd_worker_state struct
album_cachepointer 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_statepointer to mympd_worker_state struct
album_cachepointer 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_statepointer to mympd_worker_state struct
forcetrue=force update, false=update only if mpd database is newer then the caches
Returns
true on success else false