myMPD
Internal API documentation
Loading...
Searching...
No Matches
api_scripts.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_SCRIPTS_SCRIPTS_API_H
12#define MYMPD_SCRIPTS_SCRIPTS_API_H
13
14#include "dist/sds/sds.h"
15#include "src/lib/list.h"
16#include "src/scripts/util.h"
17
18#include <stdbool.h>
19
20bool scripts_file_reload(struct t_scripts_state *scripts_state);
21bool scripts_file_read(struct t_scripts_state *scripts_state);
22bool script_save(struct t_scripts_state *scripts_state, sds scriptname, sds oldscript,
23 sds file, int order, int version, sds content, struct t_list *arguments, sds *error);
24bool script_delete(struct t_scripts_state *scripts_state, sds scriptname);
25sds script_get(struct t_list *script_list, sds buffer, unsigned request_id, sds scriptname);
26sds script_list(struct t_list *script_list, sds buffer, unsigned request_id, bool all);
27
28#endif
bool scripts_file_read(struct t_scripts_state *scripts_state)
Definition api_scripts.c:61
bool scripts_file_reload(struct t_scripts_state *scripts_state)
Definition api_scripts.c:51
sds script_list(struct t_list *script_list, sds buffer, unsigned request_id, bool all)
Definition api_scripts.c:117
bool script_save(struct t_scripts_state *scripts_state, sds scriptname, sds oldscript, sds file, int order, int version, sds content, struct t_list *arguments, sds *error)
Definition api_scripts.c:173
bool script_delete(struct t_scripts_state *scripts_state, sds scriptname)
Definition api_scripts.c:150
sds script_get(struct t_list *script_list, sds buffer, unsigned request_id, sds scriptname)
Definition api_scripts.c:222
Linked list implementation.
Definition list.h:32
Definition util.h:26
Script thread utility functions.