myMPD
Internal API documentation
Loading...
Searching...
No Matches
presets.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_MPD_CLIENT_PRESETS_H
12#define MYMPD_MPD_CLIENT_PRESETS_H
13
15#include "src/lib/list/list.h"
16
17bool preset_apply(struct t_partition_state *partition_state, sds preset_name, sds *error);
18sds presets_list(struct t_list *preset_list, sds buffer);
19bool preset_save(struct t_list *preset_list, sds preset_name, sds preset_value, sds *error);
20bool preset_delete(struct t_list *preset_list, const char *preset_name);
21bool preset_list_save(struct t_partition_state *partition_state);
22bool preset_list_load(struct t_partition_state *partition_state);
23
24#endif
Linked list implementation.
Central myMPD state for the mympd_api thread.
bool preset_list_save(struct t_partition_state *partition_state)
Definition presets.c:126
bool preset_list_load(struct t_partition_state *partition_state)
Definition presets.c:139
bool preset_save(struct t_list *preset_list, sds preset_name, sds preset_value, sds *error)
Definition presets.c:80
sds presets_list(struct t_list *preset_list, sds buffer)
Definition presets.c:59
bool preset_apply(struct t_partition_state *partition_state, sds preset_name, sds *error)
Definition presets.c:32
bool preset_delete(struct t_list *preset_list, const char *preset_name)
Definition presets.c:101
Definition list.h:33
Definition partition_state.h:27