|
myMPD
Internal API documentation
|
myMPD timer handlers More...
#include "src/lib/config/mympd_state.h"

Go to the source code of this file.
Enumerations | |
| enum | timer_ids { TIMER_ID_DISK_CACHE_CROP = 1 , TIMER_ID_SMARTPLS_UPDATE , TIMER_ID_CACHES_CREATE , TIMER_ID_WEBRADIODB_UPDATE , TIMER_ID_STATE_SAVE } |
Functions | |
| const char * | get_timer_name (unsigned timer_id) |
| void | timer_handler_by_id (enum timer_ids timer_id, struct t_timer_definition *definition, struct t_mympd_state *mympd_state) |
| void | timer_handler_select (unsigned timer_id, struct t_timer_definition *definition, struct t_mympd_state *mympd_state) |
| bool | mympd_api_timer_startplay (struct t_partition_state *partition_state, unsigned volume, sds playlist, sds preset) |
myMPD timer handlers
| enum timer_ids |
Internal timer ids
| const char * get_timer_name | ( | unsigned | timer_id | ) |
Public functions Return the timer name for a timer_id
| timer_id | Timer ID |
| 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
| partition_state | pointer to the partition_state |
| volume | mpd volume to set |
| playlist | the mpd playlist to load |
| preset | the preset to load |
| void timer_handler_by_id | ( | enum timer_ids | timer_id, |
| struct t_timer_definition * | definition, | ||
| struct t_mympd_state * | mympd_state ) |
Handles timer by timer_id, this is only used for internal timers
| timer_id | the internal timer_id from enum timer_ids |
| definition | the timer definition - not used |
| mympd_state | Pointer to mympd_state |
| void timer_handler_select | ( | unsigned | timer_id, |
| struct t_timer_definition * | definition, | ||
| struct t_mympd_state * | mympd_state ) |
Handles user defined timers
| timer_id | the timer id |
| definition | the timer definition |
| mympd_state | Pointer to mympd_state |