From cf6e3604e00af420d207faa99849dca63a2e2fca Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 19 Aug 2015 13:16:06 +0200 Subject: typo + continued work on mds-colour MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-colour.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'src/mds-colour.h') diff --git a/src/mds-colour.h b/src/mds-colour.h index f8f7d6e..72e2ab0 100644 --- a/src/mds-colour.h +++ b/src/mds-colour.h @@ -30,6 +30,47 @@ int handle_message(void); +/** + * Handle the received message after it has been + * identified to contain `Command: list-colours` + * + * @param recv_client_id The value of the `Client ID`-header, "0:0" if omitted + * @param recv_message_id The value of the `Message ID`-header + * @param recv_include_values The value of the `Include values`-header, `NULL` if omitted + * @return Zero on success, -1 on error + */ +int handle_list_colours(const char* recv_client_id, const char* recv_message_id, + const char* recv_include_values); + + +/** + * Handle the received message after it has been + * identified to contain `Command: get-colour` + * + * @param recv_client_id The value of the `Client ID`-header, "0:0" if omitted + * @param recv_message_id The value of the `Message ID`-header + * @param recv_name The value of the `Name`-header, `NULL` if omitted + * @return Zero on success, -1 on error + */ +int handle_get_colour(const char* recv_client_id, const char* recv_message_id, const char* recv_name); + + +/** + * Handle the received message after it has been + * identified to contain `Command: set-colour` + * + * @param recv_name The value of the `Name`-header, `NULL` if omitted + * @param recv_remove The value of the `Remove`-header, `NULL` if omitted + * @param recv_bytes The value of the `Bytes`-header, `NULL` if omitted + * @param recv_red The value of the `Red`-header, `NULL` if omitted + * @param recv_green The value of the `Green`-header, `NULL` if omitted + * @param recv_blue The value of the `Blue`-header, `NULL` if omitted + * @return Zero on success, -1 on error + */ +int handle_set_colour(const char* recv_name, const char* recv_remove, const char* recv_bytes, + const char* recv_red, const char* recv_green, const char* recv_blue); + + /** * Send a full message even if interrupted * -- cgit v1.2.3-70-g09d2