Commit 879bafb8 authored by Max Kellermann's avatar Max Kellermann

Instance: move OnIdle() to Instance.cxx

parent 6fcea2d4
...@@ -176,3 +176,14 @@ Instance::OnRemoteTag(const char *uri, const Tag &tag) noexcept ...@@ -176,3 +176,14 @@ Instance::OnRemoteTag(const char *uri, const Tag &tag) noexcept
} }
#endif #endif
void
Instance::OnIdle(unsigned flags) noexcept
{
/* send "idle" notifications to all subscribed
clients */
client_list->IdleAdd(flags);
if (flags & (IDLE_PLAYLIST|IDLE_PLAYER|IDLE_MIXER|IDLE_OUTPUT))
OnStateModified();
}
...@@ -352,17 +352,6 @@ Instance::BeginShutdownPartitions() noexcept ...@@ -352,17 +352,6 @@ Instance::BeginShutdownPartitions() noexcept
} }
} }
void
Instance::OnIdle(unsigned flags) noexcept
{
/* send "idle" notifications to all subscribed
clients */
client_list->IdleAdd(flags);
if (flags & (IDLE_PLAYLIST|IDLE_PLAYER|IDLE_MIXER|IDLE_OUTPUT))
OnStateModified();
}
static inline void static inline void
MainConfigured(const struct options &options, const ConfigData &raw_config) MainConfigured(const struct options &options, const ConfigData &raw_config)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment