mpd/src/queue/Save.hxx
2023-03-06 14:59:48 +01:00

27 lines
546 B
C++

// 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;
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,
const char *line, Queue &queue);