myMPD
Internal API documentation
Loading...
Searching...
No Matches
cache_rax_album.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-3.0-or-later
3 myMPD (c) 2018-2025 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
11#ifndef MYMPD_CACHE_RAX_ALBUM_H
12#define MYMPD_CACHE_RAX_ALBUM_H
13
14#include "dist/sds/sds.h"
15#include "src/lib/album.h"
17#include "src/lib/fields.h"
18
19#include <stdbool.h>
20
21enum album_modes parse_album_mode(const char *mode_str);
22const char *lookup_album_mode(enum album_modes mode);
23
24bool album_cache_remove(sds workdir);
25bool album_cache_read(struct t_cache *album_cache, sds workdir, const struct t_albums_config *album_config);
26bool album_cache_write(struct t_cache *album_cache, sds workdir, const struct t_mympd_mpd_tags *album_tags, const struct t_albums_config *album_config, bool free_data);
27
28sds album_cache_get_key_from_song(sds albumkey, const struct mpd_song *song, const struct t_albums_config *album_config);
29sds album_cache_get_key_from_album(sds albumkey, const struct t_album *album, const struct t_albums_config *album_config);
30struct t_album *album_cache_get_album(struct t_cache *album_cache, sds key);
31void album_cache_free(struct t_cache *album_cache);
32void album_cache_free_rt(rax *album_cache_rt);
33void album_cache_free_rt_void(void *album_cache_rt);
34
35#endif
Album implementation.
album_modes
Definition album.h:29
General rax cache handling.
void album_cache_free_rt(rax *album_cache_rt)
Definition cache_rax_album.c:473
const char * lookup_album_mode(enum album_modes mode)
Definition cache_rax_album.c:61
sds album_cache_get_key_from_album(sds albumkey, const struct t_album *album, const struct t_albums_config *album_config)
Definition cache_rax_album.c:385
bool album_cache_remove(sds workdir)
Definition cache_rax_album.c:77
void album_cache_free_rt_void(void *album_cache_rt)
Definition cache_rax_album.c:489
void album_cache_free(struct t_cache *album_cache)
Definition cache_rax_album.c:461
bool album_cache_write(struct t_cache *album_cache, sds workdir, const struct t_mympd_mpd_tags *album_tags, const struct t_albums_config *album_config, bool free_data)
Definition cache_rax_album.c:217
struct t_album * album_cache_get_album(struct t_cache *album_cache, sds key)
Definition cache_rax_album.c:444
bool album_cache_read(struct t_cache *album_cache, sds workdir, const struct t_albums_config *album_config)
Definition cache_rax_album.c:93
enum album_modes parse_album_mode(const char *mode_str)
Definition cache_rax_album.c:48
sds album_cache_get_key_from_song(sds albumkey, const struct mpd_song *song, const struct t_albums_config *album_config)
Definition cache_rax_album.c:329
Fields handling.
Definition album.c:46
Definition album.h:37
Definition cache_rax.h:22
Definition fields.h:20