myMPD
Internal API documentation
Loading...
Searching...
No Matches
jukebox.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_MPDCLIENT_JUKEBOX_H
12#define MYMPD_MPDCLIENT_JUKEBOX_H
13
14#include "src/lib/mympd_state.h"
15
16void jukebox_clear_all(struct t_mympd_state *mympd_state);
17void jukebox_disable(struct t_partition_state *partition_state);
18bool jukebox_trigger_script(struct t_mympd_state *mympd_state, struct t_partition_state *partition_state,
19 bool add_to_queue);
20bool jukebox_run(struct t_mympd_state *mympd_state, struct t_partition_state *partition_state,
21 struct t_cache *album_cache);
22
23bool jukebox_add_to_queue(struct t_partition_state *partition_state,
24 struct t_cache *album_cache, unsigned add_songs, sds *error);
25
26#endif
bool jukebox_trigger_script(struct t_mympd_state *mympd_state, struct t_partition_state *partition_state, bool add_to_queue)
Definition jukebox.c:74
bool jukebox_run(struct t_mympd_state *mympd_state, struct t_partition_state *partition_state, struct t_cache *album_cache)
Definition jukebox.c:129
void jukebox_disable(struct t_partition_state *partition_state)
Definition jukebox.c:62
void jukebox_clear_all(struct t_mympd_state *mympd_state)
Definition jukebox.c:47
bool jukebox_add_to_queue(struct t_partition_state *partition_state, struct t_cache *album_cache, unsigned add_songs, sds *error)
Definition jukebox.c:204
Central myMPD state for the mympd_api thread.
Definition cache_rax.h:22
Definition mympd_state.h:215
Definition mympd_state.h:114