aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/cmd.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-08-23 22:45:41 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-08-23 22:45:41 +0200
commita299c8cbcdc4cc541d7b6671bf3784e9de1562a1 (patch)
tree40237d54673d879305b9ba23fbcde4b6ee4f9660 /src/cmd.h
parentnet: use CLOEXEC (diff)
downloadcimple-a299c8cbcdc4cc541d7b6671bf3784e9de1562a1.tar.gz
cimple-a299c8cbcdc4cc541d7b6671bf3784e9de1562a1.zip
cmd: add cmd_from_argv
Diffstat (limited to '')
-rw-r--r--src/cmd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd.h b/src/cmd.h
index f9b3c6b..9f519f6 100644
--- a/src/cmd.h
+++ b/src/cmd.h
@@ -6,6 +6,8 @@ struct cmd {
char **argv;
};
+int cmd_from_argv(struct cmd *, const char *argv[]);
+
int cmd_send(int fd, const struct cmd *);
int cmd_send_and_wait_for_result(int fd, const struct cmd *, int *result);