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
879bafb8
Commit
879bafb8
authored
Jan 20, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Instance: move OnIdle() to Instance.cxx
parent
6fcea2d4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
Instance.cxx
src/Instance.cxx
+11
-0
Main.cxx
src/Main.cxx
+0
-11
No files found.
src/Instance.cxx
View file @
879bafb8
...
@@ -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
();
}
src/Main.cxx
View file @
879bafb8
...
@@ -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
)
{
{
...
...
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