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_LIB_JUKEBOX_H
12#define MYMPD_LIB_JUKEBOX_H
13
14#include <stdbool.h>
15
17
28
29enum jukebox_modes jukebox_mode_parse(const char *str);
30const char *jukebox_mode_lookup(enum jukebox_modes mode);
31
32bool jukebox_file_save(struct t_partition_state *partition_state);
33bool jukebox_file_read(struct t_partition_state *partition_state);
34
35#endif
bool jukebox_file_save(struct t_partition_state *partition_state)
Definition jukebox.c:70
bool jukebox_file_read(struct t_partition_state *partition_state)
Definition jukebox.c:129
enum jukebox_modes jukebox_mode_parse(const char *str)
Definition jukebox.c:28
const char * jukebox_mode_lookup(enum jukebox_modes mode)
Definition jukebox.c:49
jukebox_modes
Definition jukebox.h:21
@ JUKEBOX_ADD_ALBUM
jukebox adds whole albums
Definition jukebox.h:24
@ JUKEBOX_ADD_SONG
jukebox adds single songs
Definition jukebox.h:23
@ JUKEBOX_UNKNOWN
jukebox mode is unknown
Definition jukebox.h:26
@ JUKEBOX_OFF
jukebox is disabled
Definition jukebox.h:22
@ JUKEBOX_SCRIPT
jukebox queue is filled by a script
Definition jukebox.h:25
Definition mympd_state.h:114