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
ace4ba31
Commit
ace4ba31
authored
Feb 12, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
StorageCommands: emit IDLE_MOUNT on successful "mount"
Add the new idle event to Idle.hxx/Idle.cxx.
parent
0935ae33
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
Idle.cxx
src/Idle.cxx
+1
-0
Idle.hxx
src/Idle.hxx
+3
-0
StorageCommands.cxx
src/command/StorageCommands.cxx
+2
-0
No files found.
src/Idle.cxx
View file @
ace4ba31
...
...
@@ -46,6 +46,7 @@ static const char *const idle_names[] = {
"subscription"
,
"message"
,
"neighbor"
,
"mount"
,
nullptr
};
...
...
src/Idle.hxx
View file @
ace4ba31
...
...
@@ -64,6 +64,9 @@ static constexpr unsigned IDLE_MESSAGE = 0x400;
/** a neighbor was found or lost */
static
constexpr
unsigned
IDLE_NEIGHBOR
=
0x800
;
/** the mount list has changed */
static
constexpr
unsigned
IDLE_MOUNT
=
0x1000
;
/**
* Adds idle flag (with bitwise "or") and queues notifications to all
* clients.
...
...
src/command/StorageCommands.cxx
View file @
ace4ba31
...
...
@@ -29,6 +29,7 @@
#include "Instance.hxx"
#include "storage/Registry.hxx"
#include "storage/CompositeStorage.hxx"
#include "Idle.hxx"
static
void
print_storage_uri
(
Client
&
client
,
const
Storage
&
storage
)
...
...
@@ -109,5 +110,6 @@ handle_mount(Client &client, gcc_unused int argc, char *argv[])
}
composite
.
Mount
(
local_uri
,
storage
);
idle_add
(
IDLE_MOUNT
);
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