Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
84e09aa8
Commit
84e09aa8
authored
Aug 06, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partition: add method GetDatabase()
parent
6cce3d29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
Partition.cxx
src/Partition.cxx
+7
-0
Partition.hxx
src/Partition.hxx
+7
-0
No files found.
src/Partition.cxx
View file @
84e09aa8
...
...
@@ -19,6 +19,7 @@
#include "config.h"
#include "Partition.hxx"
#include "Instance.hxx"
#include "DetachedSong.hxx"
#include "output/MultipleOutputs.hxx"
#include "mixer/Volume.hxx"
...
...
@@ -27,6 +28,12 @@
#ifdef ENABLE_DATABASE
const
Database
*
Partition
::
GetDatabase
(
Error
&
error
)
const
{
return
instance
.
GetDatabase
(
error
);
}
void
Partition
::
DatabaseModified
(
const
Database
&
db
)
{
...
...
src/Partition.hxx
View file @
84e09aa8
...
...
@@ -177,6 +177,13 @@ struct Partition final : private PlayerListener, private MixerListener {
#ifdef ENABLE_DATABASE
/**
* Returns the global #Database instance. May return nullptr
* if this MPD configuration has no database (no
* music_directory was configured).
*/
const
Database
*
GetDatabase
(
Error
&
error
)
const
;
/**
* The database has been modified. Propagate the change to
* all subsystems.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment