myMPD timer handlers
More...
Go to the source code of this file.
|
| enum | timer_ids { TIMER_ID_DISK_CACHE_CROP = 1
, TIMER_ID_SMARTPLS_UPDATE = 2
, TIMER_ID_CACHES_CREATE = 3
, TIMER_ID_WEBRADIODB_UPDATE = 4
} |
| |
◆ timer_ids
◆ get_timer_name()
| const char * get_timer_name |
( |
unsigned |
timer_id | ) |
|
Public functions Return the timer name for a timer_id
- Parameters
-
- Returns
- const char* Timer name
◆ mympd_api_timer_startplay()
| bool mympd_api_timer_startplay |
( |
struct t_partition_state * |
partition_state, |
|
|
unsigned |
volume, |
|
|
sds |
playlist, |
|
|
sds |
preset |
|
) |
| |
This function is used by INTERNAL_API_TIMER_STARTPLAY and is called from the mympd_api_handler
- Parameters
-
| partition_state | pointer to the partition_state |
| volume | mpd volume to set |
| playlist | the mpd playlist to load |
| preset | the preset to load |
- Returns
- true on success else false
◆ timer_handler_by_id()
Handles timer by timer_id, this is only used for internal timers
- Parameters
-
| timer_id | the internal timer_id from enum timer_ids |
| definition | the timer definition - not used |
◆ timer_handler_select()
Handles user defined timers
- Parameters
-
| timer_id | the timer id |
| definition | the timer definition |