Rename stuff in C client API for clarity

This commit is contained in:
Kristóf Tóth 2019-04-08 15:15:24 +02:00
parent 05e397f142
commit 11813a9454

View File

@ -26,7 +26,7 @@ bool check_pipe_reader(const pipe_reader* preader) {
return true; return true;
} }
const char* read_line_pipe_reader(pipe_reader* preader) { const char* recv_msg_pipe_reader(pipe_reader* preader) {
if (!check_pipe_reader(preader)) { if (!check_pipe_reader(preader)) {
return NULL; return NULL;
} }
@ -105,11 +105,11 @@ bool check_pipe_io(const pipe_io* pipeio) {
return (check_pipe_reader(&pipeio->preader) && check_pipe_writer(&pipeio->pwriter)); return (check_pipe_reader(&pipeio->preader) && check_pipe_writer(&pipeio->pwriter));
} }
const char* read_line_pipe_io(pipe_io* pipeio) { const char* recv_msg_pipe_io(pipe_io* pipeio) {
if (!check_pipe_io(pipeio)) { if (!check_pipe_io(pipeio)) {
return NULL; return NULL;
} }
return read_line_pipe_reader(&pipeio->preader); return recv_msg_pipe_reader(&pipeio->preader);
} }
bool send_msg_pipe_io(pipe_io* pipeio, const char* msg) { bool send_msg_pipe_io(pipe_io* pipeio, const char* msg) {