mpd/src/db/DatabaseGlue.hxx

27 lines
536 B
C++
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
#ifndef MPD_DATABASE_GLUE_HXX
#define MPD_DATABASE_GLUE_HXX
#include "Ptr.hxx"
struct ConfigBlock;
class EventLoop;
class DatabaseListener;
/**
* Initialize the database library.
*
* Throws #std::runtime_error on error.
*
2015-03-17 11:21:29 +01:00
* @param block the database configuration block
*/
DatabasePtr
DatabaseGlobalInit(EventLoop &main_event_loop,
EventLoop &io_event_loop,
DatabaseListener &listener,
const ConfigBlock &block);
#endif