myMPD
Internal API documentation
Loading...
Searching...
No Matches
jukebox_state.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-3.0-or-later
3 myMPD (c) 2018-2026 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
10
11#ifndef MYMPD_JUKEBOX_STATE_H
12#define MYMPD_JUKEBOX_STATE_H
13
14#include "dist/sds/sds.h"
15#include "src/lib/fields.h"
16#include "src/lib/jukebox.h"
17#include "src/lib/list/list.h"
18
38
39void jukebox_state_default(struct t_jukebox_state *jukebox_state);
40void jukebox_state_copy(struct t_jukebox_state *src, struct t_jukebox_state *dst);
41void jukebox_state_free(struct t_jukebox_state *jukebox_state);
42
43#endif
Fields handling.
void jukebox_state_free(struct t_jukebox_state *jukebox_state)
Definition jukebox_state.c:44
void jukebox_state_copy(struct t_jukebox_state *src, struct t_jukebox_state *dst)
Definition jukebox_state.c:57
void jukebox_state_default(struct t_jukebox_state *jukebox_state)
Definition jukebox_state.c:22
Jukebox library.
jukebox_modes
Definition jukebox.h:21
Linked list implementation.
Definition jukebox_state.h:22
struct t_list * queue
the jukebox queue itself
Definition jukebox_state.h:28
sds playlist
playlist from which the jukebox queue is generated
Definition jukebox_state.h:24
bool ignore_hated
ignores hated songs for the jukebox mode
Definition jukebox_state.h:29
sds last_error
last jukebox error message
Definition jukebox_state.h:35
sds filter_exclude
mpd search filter to exclude songs / albums
Definition jukebox_state.h:31
unsigned queue_length
how many songs should the mpd queue have
Definition jukebox_state.h:25
bool autostart
Run jukebox after MPD connection is established.
Definition jukebox_state.h:36
struct t_mympd_mpd_tags uniq_tag
single tag for the jukebox uniq constraint
Definition jukebox_state.h:27
unsigned min_song_duration
minimum song duration
Definition jukebox_state.h:32
sds filter_include
mpd search filter to include songs / albums
Definition jukebox_state.h:30
enum jukebox_modes mode
the jukebox mode
Definition jukebox_state.h:23
unsigned last_played
only add songs with last_played state older than seconds from now
Definition jukebox_state.h:26
unsigned max_song_duration
maximum song duration
Definition jukebox_state.h:33
bool filling
indication flag for filling jukebox thread
Definition jukebox_state.h:34
Definition list.h:33
Definition fields.h:20