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
3b84b998
Commit
3b84b998
authored
Feb 17, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IdleFlags: add a "partition" event
parent
1786f9b1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
protocol.xml
doc/protocol.xml
+6
-0
IdleFlags.cxx
src/IdleFlags.cxx
+1
-0
IdleFlags.hxx
src/IdleFlags.hxx
+3
-0
PartitionCommands.cxx
src/command/PartitionCommands.cxx
+3
-0
No files found.
doc/protocol.xml
View file @
3b84b998
...
...
@@ -377,6 +377,12 @@
</listitem>
<listitem>
<para>
<returnvalue>
partition
</returnvalue>
: a partition
was added, removed or changed
</para>
</listitem>
<listitem>
<para>
<returnvalue>
sticker
</returnvalue>
: the sticker database
has been modified.
</para>
...
...
src/IdleFlags.cxx
View file @
3b84b998
...
...
@@ -42,6 +42,7 @@ static const char *const idle_names[] = {
"message"
,
"neighbor"
,
"mount"
,
"partition"
,
nullptr
};
...
...
src/IdleFlags.hxx
View file @
3b84b998
...
...
@@ -67,6 +67,9 @@ static constexpr unsigned IDLE_NEIGHBOR = 0x800;
/** the mount list has changed */
static
constexpr
unsigned
IDLE_MOUNT
=
0x1000
;
/** the partition list has changed */
static
constexpr
unsigned
IDLE_PARTITION
=
0x2000
;
/**
* Get idle names
*/
...
...
src/command/PartitionCommands.cxx
View file @
3b84b998
...
...
@@ -22,6 +22,7 @@
#include "Request.hxx"
#include "Instance.hxx"
#include "Partition.hxx"
#include "IdleFlags.hxx"
#include "client/Client.hxx"
#include "client/Response.hxx"
#include "player/Thread.hxx"
...
...
@@ -102,5 +103,7 @@ handle_newpartition(Client &client, Request request, Response &response)
StartPlayerThread
(
partition
.
pc
);
partition
.
pc
.
LockUpdateAudio
();
instance
.
EmitIdle
(
IDLE_PARTITION
);
return
CommandResult
::
OK
;
}
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