X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/ad131c2579b5e9fda58e5d76bdb20d5949a711ee..8ab2aa9fd51a89e06d92a4f7c3792aaa4a08cc71:/lib/eclient-stubs.h diff --git a/lib/eclient-stubs.h b/lib/eclient-stubs.h index 2475034..32e3237 100644 --- a/lib/eclient-stubs.h +++ b/lib/eclient-stubs.h @@ -22,6 +22,11 @@ */ #ifndef ECLIENT_STUBS_H #define ECLIENT_STUBS_H +/** @file lib/client-stubs.h + * @brief Generated asynchronous client API + * + * Don't include this file directly - use @ref lib/eclient.h instead. + */ /** @brief Adopt a track * @@ -565,6 +570,30 @@ int disorder_eclient_resume(disorder_eclient *c, disorder_eclient_no_response *c */ int disorder_eclient_revoke(disorder_eclient *c, disorder_eclient_no_response *completed, void *v); +/** @brief Cancel RTP stream + * + * + * + * @param c Client + * @param completed Called upon completion + * @param v Passed to @p completed + * @return 0 if the command was queued successfuly, non-0 on error + */ +int disorder_eclient_rtp_cancel(disorder_eclient *c, disorder_eclient_no_response *completed, void *v); + +/** @brief Request a unicast RTP stream + * + * + * + * @param c Client + * @param completed Called upon completion + * @param address Destination address + * @param port Destination port number + * @param v Passed to @p completed + * @return 0 if the command was queued successfuly, non-0 on error + */ +int disorder_eclient_rtp_request(disorder_eclient *c, disorder_eclient_no_response *completed, const char *address, const char *port, void *v); + /** @brief Terminate the playing track. * * Requires one of the 'scratch mine', 'scratch random' or 'scratch any' rights depending on how the track came to be added to the queue.