chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Core Audio support should now include descriptions in error strings.
[disorder]
/
disobedience
/
log.c
diff --git
a/disobedience/log.c
b/disobedience/log.c
index d11e7bbcf4ee62b96883acbd5ca49198f8cbe897..652c4e9934597acc76010ae8c77925dc8297ba62 100644
(file)
--- a/
disobedience/log.c
+++ b/
disobedience/log.c
@@
-41,6
+41,7
@@
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);
static void log_rights_changed(void *v, rights_type r);
static void log_volume(void *v, int l, int r);
static void log_rescanned(void *v);
static void log_rights_changed(void *v, rights_type r);
+static void log_adopted(void *v, const char *id, const char *user);
/** @brief Callbacks for server state monitoring */
const disorder_eclient_log_callbacks log_callbacks = {
/** @brief Callbacks for server state monitoring */
const disorder_eclient_log_callbacks log_callbacks = {
@@
-57,7
+58,8
@@
const disorder_eclient_log_callbacks log_callbacks = {
.state = log_state,
.volume = log_volume,
.rescanned = log_rescanned,
.state = log_state,
.volume = log_volume,
.rescanned = log_rescanned,
- .rights_changed = log_rights_changed
+ .rights_changed = log_rights_changed,
+ .adopted = log_adopted
};
/** @brief Update everything */
};
/** @brief Update everything */
@@
-202,6
+204,13
@@
static void log_rights_changed(void attribute((unused)) *v,
--suppress_actions;
}
--suppress_actions;
}
+/** @brief Called when a track is adopted */
+static void log_adopted(void attribute((unused)) *v,
+ const char attribute((unused)) *id,
+ const char attribute((unused)) *who) {
+ event_raise("queue-changed", 0);
+}
+
/*
Local Variables:
c-basic-offset:2
/*
Local Variables:
c-basic-offset:2