X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/913f2c0a04c0f943145fe387395cc4e44e42d582..e025abff5284ede4e6927af6b702b6813f42f8d0:/disobedience/log.c?ds=sidebyside diff --git a/disobedience/log.c b/disobedience/log.c index 45d5a9e..83aa582 100644 --- a/disobedience/log.c +++ b/disobedience/log.c @@ -41,6 +41,7 @@ static void log_removed(void *v, const char *id, const char *user); static void log_scratched(void *v, const char *track, const char *user); static void log_state(void *v, unsigned long state); static void log_volume(void *v, int l, int r); +static void log_rescanned(void *v); /** @brief Callbacks for server state monitoring */ const disorder_eclient_log_callbacks log_callbacks = { @@ -55,7 +56,8 @@ const disorder_eclient_log_callbacks log_callbacks = { log_removed, log_scratched, log_state, - log_volume + log_volume, + log_rescanned }; /** @brief State monitor @@ -192,6 +194,11 @@ static void log_volume(void attribute((unused)) *v, } } +/** @brief Called when a rescan completes */ +static void log_rescanned(void attribute((unused)) *v) { + added_update(); +} + /** @brief Add a monitor to the list * @param callback Function to call * @param u User data to pass to @p callback