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
bae6f653
Commit
bae6f653
authored
Feb 04, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Instance: merge DatabaseModified() into OnDatabaseModified()
parent
eec6d099
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
18 deletions
+7
-18
Instance.cxx
src/Instance.cxx
+7
-11
Instance.hxx
src/Instance.hxx
+0
-7
No files found.
src/Instance.cxx
View file @
bae6f653
...
@@ -40,16 +40,6 @@ Instance::DeleteSong(const char *uri)
...
@@ -40,16 +40,6 @@ Instance::DeleteSong(const char *uri)
partition
->
DeleteSong
(
uri
);
partition
->
DeleteSong
(
uri
);
}
}
void
Instance
::
DatabaseModified
()
{
assert
(
database
!=
nullptr
);
stats_invalidate
();
partition
->
DatabaseModified
(
*
database
);
idle_add
(
IDLE_DATABASE
);
}
#endif
#endif
void
void
...
@@ -69,7 +59,13 @@ Instance::SyncWithPlayer()
...
@@ -69,7 +59,13 @@ Instance::SyncWithPlayer()
void
void
Instance
::
OnDatabaseModified
()
Instance
::
OnDatabaseModified
()
{
{
DatabaseModified
();
assert
(
database
!=
nullptr
);
/* propagate the change to all subsystems */
stats_invalidate
();
partition
->
DatabaseModified
(
*
database
);
idle_add
(
IDLE_DATABASE
);
}
}
#endif
#endif
...
...
src/Instance.hxx
View file @
bae6f653
...
@@ -81,13 +81,6 @@ struct Instance final
...
@@ -81,13 +81,6 @@ struct Instance final
Database
*
GetDatabase
(
Error
&
error
);
Database
*
GetDatabase
(
Error
&
error
);
void
DeleteSong
(
const
char
*
uri
);
void
DeleteSong
(
const
char
*
uri
);
/**
* The database has been modified. Propagate the change to
* all subsystems.
*/
void
DatabaseModified
();
#endif
#endif
/**
/**
...
...
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