diff options
| author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-14 17:09:53 +0200 |
|---|---|---|
| committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-14 17:12:18 +0200 |
| commit | 94308ce35b636c6941a4a11985aec2189cb4b9e8 (patch) | |
| tree | 7a191f17426690eba64d8598f143751b511900c9 /src/msg.h | |
| parent | fix unnecessary #include-s (diff) | |
| download | cimple-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/msg.h')
| -rw-r--r-- | src/msg.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -12,8 +12,14 @@ struct msg; +int msg_from_argv(struct msg **, const char **argv); +void msg_free(struct msg *); + +int msg_copy(struct msg **, const struct msg *); + size_t msg_get_length(const struct msg *); const char **msg_get_words(const struct msg *); +const char *msg_get_first_word(const struct msg *); int msg_success(struct msg **); int msg_error(struct msg **); @@ -21,11 +27,6 @@ int msg_error(struct msg **); int msg_is_success(const struct msg *); int msg_is_error(const struct msg *); -int msg_copy(struct msg **, const struct msg *); -void msg_free(struct msg *); - -int msg_from_argv(struct msg **, const char **argv); - int msg_recv(int fd, struct msg **); int msg_send(int fd, const struct msg *); |
