From 196abe367c46cf3c2337b4b1da8bb2c084065c7d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 25 Dec 2015 22:06:56 +0100 Subject: satr run select jobs + satrm can remove multiple jobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/client.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index 2e5cf9d..6a2b91b 100644 --- a/src/client.h +++ b/src/client.h @@ -22,6 +22,7 @@ #include + /** * Commands for `send_command`. */ @@ -49,6 +50,7 @@ enum command }; + /** * Send a command to satd. Start satd if it is not running. * @@ -62,3 +64,21 @@ enum command */ int send_command(enum command cmd, size_t n, const char *restrict msg); + +/** + * Return the number of bytes required to store a string array. + * + * @param array The string array. + * @return The number of bytes required to store the array. + */ +size_t measure_array(char *array[]) + +/** + * Store a string array. + * + * @param storage The buffer where the array is to be stored. + * @param array The array to store. + * @return Where in the buffer the array ends. + */ +char *store_array(char *restrict storage, char *array[]); + -- cgit v1.2.3-70-g09d2