Instance: move OnIdle() to Instance.cxx

This commit is contained in:
Max Kellermann 2020-01-20 13:32:43 +01:00
parent 6fcea2d484
commit 879bafb837
2 changed files with 11 additions and 11 deletions

View File

@ -176,3 +176,14 @@ Instance::OnRemoteTag(const char *uri, const Tag &tag) noexcept
}
#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();
}

View File

@ -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
MainConfigured(const struct options &options, const ConfigData &raw_config)
{