aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/msg.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-08-25 16:18:52 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-08-25 16:18:52 +0200
commit24b4e51e2fedca3417457559399a1d0eaf35c7fd (patch)
treee367cc51c192e8365ca7653249826733c4ea8a01 /src/msg.h
parentmsg: refactoring (diff)
downloadcimple-24b4e51e2fedca3417457559399a1d0eaf35c7fd.tar.gz
cimple-24b4e51e2fedca3417457559399a1d0eaf35c7fd.zip
msg: add msg_copy, refactoring
Diffstat (limited to 'src/msg.h')
-rw-r--r--src/msg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/msg.h b/src/msg.h
index 03e5f89..a71b571 100644
--- a/src/msg.h
+++ b/src/msg.h
@@ -6,9 +6,10 @@ struct msg {
char **argv;
};
+struct msg *msg_copy(const struct msg *);
void msg_free(const struct msg *);
-int msg_from_argv(struct msg *, const char *argv[]);
+int msg_from_argv(struct msg *, char **argv);
int msg_recv(int fd, struct msg *);
int msg_send(int fd, const struct msg *);