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
4de3b6dc
Commit
4de3b6dc
authored
Oct 22, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partition: add method DatabaseModified()
parent
c7bbfef1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
Instance.cxx
src/Instance.cxx
+1
-1
Partition.cxx
src/Partition.cxx
+6
-0
Partition.hxx
src/Partition.hxx
+6
-0
No files found.
src/Instance.cxx
View file @
4de3b6dc
...
...
@@ -31,7 +31,7 @@ Instance::DeleteSong(const Song &song)
void
Instance
::
DatabaseModified
()
{
partition
->
playlist
.
FullIncrementVersions
();
partition
->
DatabaseModified
();
idle_add
(
IDLE_DATABASE
);
}
...
...
src/Partition.cxx
View file @
4de3b6dc
...
...
@@ -22,6 +22,12 @@
#include "Song.hxx"
void
Partition
::
DatabaseModified
()
{
playlist
.
FullIncrementVersions
();
}
void
Partition
::
TagModified
()
{
Song
*
song
=
pc
.
LockReadTaggedSong
();
...
...
src/Partition.hxx
View file @
4de3b6dc
...
...
@@ -167,6 +167,12 @@ struct Partition {
}
/**
* The database has been modified. Propagate the change to
* all subsystems.
*/
void
DatabaseModified
();
/**
* A tag in the play queue has been modified by the player
* thread. 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