myMPD
Internal API documentation
Loading...
Searching...
No Matches
timer_handlers.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_API_TIMER_HANDLERS_H
12#define MYMPD_API_TIMER_HANDLERS_H
13
15
20 TIMER_ID_DISK_CACHE_CROP = 1,
21 TIMER_ID_SMARTPLS_UPDATE,
22 TIMER_ID_CACHES_CREATE,
23 TIMER_ID_WEBRADIODB_UPDATE,
24 TIMER_ID_STATE_SAVE,
25};
26
27const char *get_timer_name(unsigned timer_id);
28void timer_handler_by_id(enum timer_ids timer_id, struct t_timer_definition *definition, struct t_mympd_state *mympd_state);
29void timer_handler_select(unsigned timer_id, struct t_timer_definition *definition, struct t_mympd_state *mympd_state);
30bool mympd_api_timer_startplay(struct t_partition_state *partition_state,
31 unsigned volume, sds playlist, sds preset);
32#endif
Central myMPD state for the mympd_api thread.
Definition mympd_state.h:31
Definition partition_state.h:27
Definition timer_state.h:20
const char * get_timer_name(unsigned timer_id)
Definition timer_handlers.c:53
void timer_handler_select(unsigned timer_id, struct t_timer_definition *definition, struct t_mympd_state *mympd_state)
Definition timer_handlers.c:102
timer_ids
Definition timer_handlers.h:19
void timer_handler_by_id(enum timer_ids timer_id, struct t_timer_definition *definition, struct t_mympd_state *mympd_state)
Definition timer_handlers.c:75
bool mympd_api_timer_startplay(struct t_partition_state *partition_state, unsigned volume, sds playlist, sds preset)
Definition timer_handlers.c:149