X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/00861dcb1b67a282893f3d30187459c6384cbee7..711a4497dbc85cd50e77f01c0763de1cb57e47de:/lib/client-stubs.h diff --git a/lib/client-stubs.h b/lib/client-stubs.h index 13f0724..f7a9dbb 100644 --- a/lib/client-stubs.h +++ b/lib/client-stubs.h @@ -166,6 +166,16 @@ int disorder_get(disorder_client *c, const char *track, const char *pref, char * */ int disorder_get_global(disorder_client *c, const char *pref, char **valuep); +/** @brief Get a track's length + * + * If the track does not exist an error is returned. + * + * @param track Track name + * @param lengthp Track length in seconds + * @return 0 on success, non-0 on error + */ +int disorder_length(disorder_client *c, const char *track, long *lengthp); + /** @brief Create a login cookie for this user * * The cookie may be redeemed via the 'cookie' command