X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..6cad0c845dc5d6f6b4d4cc5e9ae7aee39d279b49:/lib/eclient.h diff --git a/lib/eclient.h b/lib/eclient.h index 57d202a..ce5c582 100644 --- a/lib/eclient.h +++ b/lib/eclient.h @@ -125,7 +125,7 @@ typedef struct disorder_eclient_log_callbacks { /** @brief Called when @p id is removed from the recent list */ void (*recent_removed)(void *v, const char *id); - /** @brief Called when @id is removed from the queue + /** @brief Called when @p id is removed from the queue * * @p user might be 0. */ @@ -165,6 +165,9 @@ typedef struct disorder_eclient_log_callbacks { /** @brief Called when your rights change */ void (*rights_changed)(void *v, rights_type new_rights); + + /** @brief Called when a track is adopted */ + void (*adopted)(void *v, const char *id, const char *who); } disorder_eclient_log_callbacks; /* State bits */ @@ -483,7 +486,10 @@ int disorder_eclient_adduser(disorder_eclient *c, void *v); void disorder_eclient_enable_connect(disorder_eclient *c); void disorder_eclient_disable_connect(disorder_eclient *c); - +int disorder_eclient_adopt(disorder_eclient *c, + disorder_eclient_no_response *completed, + const char *id, + void *v); #endif /*