MPD  0.20.18
Functions
PlaylistState.hxx File Reference

Go to the source code of this file.

Functions

void playlist_state_save (BufferedOutputStream &os, const playlist &playlist, PlayerControl &pc)
 
bool playlist_state_restore (const char *line, TextFile &file, const SongLoader &song_loader, playlist &playlist, PlayerControl &pc)
 
unsigned playlist_state_get_hash (const playlist &playlist, PlayerControl &c)
 Generates a hash number for the current state of the playlist and the playback options. More...
 

Function Documentation

◆ playlist_state_get_hash()

unsigned playlist_state_get_hash ( const playlist &  playlist,
PlayerControl &  c 
)

Generates a hash number for the current state of the playlist and the playback options.

This is used by timer_save_state_file() to determine whether the state has changed and the state file should be saved.

◆ playlist_state_restore()

bool playlist_state_restore ( const char *  line,
TextFile &  file,
const SongLoader &  song_loader,
playlist &  playlist,
PlayerControl &  pc 
)

◆ playlist_state_save()

void playlist_state_save ( BufferedOutputStream &  os,
const playlist &  playlist,
PlayerControl &  pc 
)