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
1769ae54
Commit
1769ae54
authored
Feb 01, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partition: disable DatabaseModified() if not ENABLE_DATABASE
parent
e5456792
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
Partition.cxx
src/Partition.cxx
+4
-0
Partition.hxx
src/Partition.hxx
+2
-0
Playlist.hxx
src/Playlist.hxx
+2
-0
No files found.
src/Partition.cxx
View file @
1769ae54
...
...
@@ -22,12 +22,16 @@
#include "DetachedSong.hxx"
#include "output/MultipleOutputs.hxx"
#ifdef ENABLE_DATABASE
void
Partition
::
DatabaseModified
()
{
playlist
.
DatabaseModified
();
}
#endif
void
Partition
::
TagModified
()
{
...
...
src/Partition.hxx
View file @
1769ae54
...
...
@@ -173,11 +173,13 @@ struct Partition {
playlist
.
SetConsume
(
new_value
);
}
#ifdef ENABLE_DATABASE
/**
* The database has been modified. Propagate the change to
* all subsystems.
*/
void
DatabaseModified
();
#endif
/**
* A tag in the play queue has been modified by the player
...
...
src/Playlist.hxx
View file @
1769ae54
...
...
@@ -137,10 +137,12 @@ public:
*/
void
TagModified
(
DetachedSong
&&
song
);
#ifdef ENABLE_DATABASE
/**
* The database has been modified. Pull all updates.
*/
void
DatabaseModified
();
#endif
PlaylistResult
AppendSong
(
PlayerControl
&
pc
,
DetachedSong
&&
song
,
...
...
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