Instance: move OnIdle() to Instance.cxx
This commit is contained in:
parent
6fcea2d484
commit
879bafb837
|
@ -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();
|
||||
}
|
||||
|
|
11
src/Main.cxx
11
src/Main.cxx
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue