aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/msg.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-09 00:10:02 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-09 00:10:13 +0200
commitcc7c91c8ea38ac4cd226469481c2f6d63805331b (patch)
tree3f7816ae011b83f6baca597e3342e794721a51b2 /src/msg.h
parentadd {file,net}_close as a wrapper to close(2) (diff)
downloadcimple-cc7c91c8ea38ac4cd226469481c2f6d63805331b.tar.gz
cimple-cc7c91c8ea38ac4cd226469481c2f6d63805331b.zip
msg: add msg_send_from_argv shortcut
Diffstat (limited to '')
-rw-r--r--src/msg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/msg.h b/src/msg.h
index 64da9b8..d81134d 100644
--- a/src/msg.h
+++ b/src/msg.h
@@ -30,6 +30,8 @@ int msg_is_error(const struct msg *);
int msg_recv(int fd, struct msg **);
int msg_send(int fd, const struct msg *);
+int msg_send_from_argv(int fd, const char **argv);
+
int msg_communicate(int fd, const struct msg *, struct msg **response);
int msg_connect_and_communicate(const char *host, const char *port, const struct msg *,
struct msg **);