idle: added "update" event

Some clients have visual feedback for "database update is running".
Using the "database" idle event is unreliable, because it is only
emitted when the database was actually modified.  This patch adds the
"update" event, which is emitted when the update is started, and again
when the update is finished, disregarding whether it has been
modified.
This commit is contained in:
Max Kellermann
2009-07-05 08:46:53 +02:00
parent 46c19b8249
commit d4914fc9ef
5 changed files with 20 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ static const char *const idle_names[] = {
"output",
"options",
"sticker",
"update",
NULL
};