mpd/src/queue/Save.hxx

27 lines
546 B
C++
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
/*
* This library saves the queue into the state file, and also loads it
* back into memory.
*/
#pragma once
struct Queue;
class BufferedOutputStream;
class LineReader;
2014-02-03 22:25:54 +01:00
class SongLoader;
void
queue_save(BufferedOutputStream &os, const Queue &queue);
/**
* Loads one song from the state file and appends it to the queue.
*
* Throws on error.
*/
void
queue_load_song(LineReader &file, const SongLoader &loader,
2014-02-03 22:25:54 +01:00
const char *line, Queue &queue);