aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/net.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-05-14 17:09:53 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-05-14 17:12:18 +0200
commit94308ce35b636c6941a4a11985aec2189cb4b9e8 (patch)
tree7a191f17426690eba64d8598f143751b511900c9 /src/net.h
parentfix unnecessary #include-s (diff)
downloadcimple-94308ce35b636c6941a4a11985aec2189cb4b9e8.tar.gz
cimple-94308ce35b636c6941a4a11985aec2189cb4b9e8.zip
msg: enforce at least one word
Also, move some stuff to net.c where it belongs.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 84968cb..a8acb57 100644
--- a/src/net.h
+++ b/src/net.h
@@ -26,6 +26,9 @@ void buf_destroy(struct buf *);
uint32_t buf_get_size(const struct buf *);
void *buf_get_data(const struct buf *);
+int buf_pack_strings(struct buf **, size_t argc, const char **argv);
+int buf_unpack_strings(const struct buf *, size_t *argc, const char ***argv);
+
int net_send_buf(int fd, const struct buf *);
int net_recv_buf(int fd, struct buf **);