aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-25 21:45:21 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-25 21:45:21 +0100
commit52fd86ab718439b6be29b8807dc52c71bc1567a6 (patch)
tree70b3e55b49145d829ebf8f83722f3a93e27119cc /src/client.c
parentit shall be possible to slect jobs in satr (diff)
downloadsat-52fd86ab718439b6be29b8807dc52c71bc1567a6.tar.gz
sat-52fd86ab718439b6be29b8807dc52c71bc1567a6.tar.bz2
sat-52fd86ab718439b6be29b8807dc52c71bc1567a6.tar.xz
improve send_command
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/client.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/client.c b/src/client.c
index 5f4ad00..fb08c49 100644
--- a/src/client.c
+++ b/src/client.c
@@ -33,21 +33,16 @@ extern char *argv0;
/**
* Send a command to satd. Start satd if it is not running.
*
- * If `n` is 0 but `msg` is not `NULL`, `msg` is a
- * NUL-terminated string with the ID of the job to
- * remove for the queue. `msg` should otherwise,
- * unless it is `NULL` be the command the run, followed
- * by its environment.
- *
- * @param n The length of the message, or a number
- * number to send if `msg` is `NULL`.
+ * @param cmd Command type.
+ * @param n The length of the message, 0 if `msg` is
+ * `NULL` or NUL-terminated.
* @param msg The message to send.
* @return Zero on success.
*
* @throws 0 Error at the daemon-side.
*/
int
-send_command(size_t n, const char *restrict msg)
+send_command(enum command cmd, size_t n, const char *restrict msg)
{
return 0 /* TODO */
}