aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/msg.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-11 12:47:21 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-11 12:58:07 +0200
commit04547fe158fe05f97ccf584332319da3e6b344d8 (patch)
tree904a8716d3261c53c199a967fbc651b33430db2b /src/msg.h
parentworker_queue: fix worker_queue_add_last (diff)
downloadcimple-04547fe158fe05f97ccf584332319da3e6b344d8.tar.gz
cimple-04547fe158fe05f97ccf584332319da3e6b344d8.zip
msg: rework some APIs
Diffstat (limited to 'src/msg.h')
-rw-r--r--src/msg.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/msg.h b/src/msg.h
index d81134d..44ebf44 100644
--- a/src/msg.h
+++ b/src/msg.h
@@ -28,13 +28,16 @@ int msg_is_success(const struct msg *);
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_argv(int fd, const char **argv);
-int msg_send_from_argv(int fd, const char **argv);
+int msg_talk(int fd, const struct msg *, struct msg **response);
+int msg_talk_argv(int fd, const char **argv, struct msg **response);
-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 **);
+int msg_connect_and_talk(const char *host, const char *port, const struct msg *, struct msg **);
+int msg_connect_and_talk_argv(const char *host, const char *port, const char **argv,
+ struct msg **response);
void msg_dump(const struct msg *);