aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/StorageCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-12 21:46:16 +0100
committerMax Kellermann <max@duempel.org>2014-02-12 23:06:47 +0100
commitace4ba317105341364313d2d1e78b54829ae3883 (patch)
treeea13f8bf0a9c2882b0415767ba274c438867c789 /src/command/StorageCommands.cxx
parent0935ae330abe4aca1b63d46eaaa2f8a67c06375f (diff)
downloadmpd-ace4ba317105341364313d2d1e78b54829ae3883.tar.gz
mpd-ace4ba317105341364313d2d1e78b54829ae3883.tar.xz
mpd-ace4ba317105341364313d2d1e78b54829ae3883.zip
StorageCommands: emit IDLE_MOUNT on successful "mount"
Add the new idle event to Idle.hxx/Idle.cxx.
Diffstat (limited to '')
-rw-r--r--src/command/StorageCommands.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command/StorageCommands.cxx b/src/command/StorageCommands.cxx
index 8e26f3a9a..a538c77fb 100644
--- a/src/command/StorageCommands.cxx
+++ b/src/command/StorageCommands.cxx
@@ -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;
}