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
1e2cda92
Commit
1e2cda92
authored
Oct 21, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partition: add methods TagModified(), SyncWithPlayer()
Move code from class Instance.
parent
20cba9e8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
3 deletions
+47
-3
Makefile.am
Makefile.am
+1
-1
Instance.cxx
src/Instance.cxx
+2
-2
Partition.cxx
src/Partition.cxx
+33
-0
Partition.hxx
src/Partition.hxx
+11
-0
No files found.
Makefile.am
View file @
1e2cda92
...
...
@@ -159,7 +159,7 @@ src_mpd_SOURCES = \
src/MusicChunk.cxx src/MusicChunk.hxx
\
src/Mapper.cxx src/Mapper.hxx
\
src/Page.cxx src/Page.hxx
\
src/Partition.hxx
\
src/Partition.
cxx src/Partition.
hxx
\
src/Permission.cxx src/Permission.hxx
\
src/PlayerThread.cxx src/PlayerThread.hxx
\
src/PlayerControl.cxx src/PlayerControl.hxx
\
...
...
src/Instance.cxx
View file @
1e2cda92
...
...
@@ -38,11 +38,11 @@ Instance::DatabaseModified()
void
Instance
::
TagModified
()
{
partition
->
playlist
.
TagChang
ed
();
partition
->
TagModifi
ed
();
}
void
Instance
::
SyncWithPlayer
()
{
partition
->
playlist
.
SyncWithPlayer
(
partition
->
pc
);
partition
->
SyncWithPlayer
(
);
}
src/Partition.cxx
0 → 100644
View file @
1e2cda92
/*
* Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "Partition.hxx"
void
Partition
::
TagModified
()
{
playlist
.
TagChanged
();
}
void
Partition
::
SyncWithPlayer
()
{
playlist
.
SyncWithPlayer
(
pc
);
}
src/Partition.hxx
View file @
1e2cda92
...
...
@@ -165,6 +165,17 @@ struct Partition {
void
SetConsume
(
bool
new_value
)
{
playlist
.
SetConsume
(
new_value
);
}
/**
* A tag in the play queue has been modified. Propagate the
* change to all subsystems.
*/
void
TagModified
();
/**
* Synchronize the player with the play queue.
*/
void
SyncWithPlayer
();
};
#endif
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