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-2025 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
11#ifndef MYMPD_API_TIMER_HANDLERS_H
12#define MYMPD_API_TIMER_HANDLERS_H
13
14#include "src/lib/mympd_state.h"
15
20 TIMER_ID_DISK_CACHE_CROP = 1,
21 TIMER_ID_SMARTPLS_UPDATE = 2,
22 TIMER_ID_CACHES_CREATE = 3,
23 TIMER_ID_WEBRADIODB_UPDATE = 4
24};
25
26const char *get_timer_name(unsigned timer_id);
27void timer_handler_by_id(unsigned timer_id, struct t_timer_definition *definition);
28void timer_handler_select(unsigned timer_id, struct t_timer_definition *definition);
29bool mympd_api_timer_startplay(struct t_partition_state *partition_state,
30 unsigned volume, sds playlist, sds preset);
31#endif
Central myMPD state for the mympd_api thread.
Definition mympd_state.h:114
Definition mympd_state.h:178
const char * get_timer_name(unsigned timer_id)
Definition timer_handlers.c:52
timer_ids
Definition timer_handlers.h:19
void timer_handler_select(unsigned timer_id, struct t_timer_definition *definition)
Definition timer_handlers.c:96
void timer_handler_by_id(unsigned timer_id, struct t_timer_definition *definition)
Definition timer_handlers.c:71
bool mympd_api_timer_startplay(struct t_partition_state *partition_state, unsigned volume, sds playlist, sds preset)
Definition timer_handlers.c:142