Hide more interfaces behind the flow code.

This commit is contained in:
Ian Gulliver
2016-02-29 20:16:57 -08:00
parent 3fb3c02cf5
commit 90de5b80bc
5 changed files with 55 additions and 56 deletions

View File

@@ -97,7 +97,8 @@ bool opts_add_file_read(char *arg) {
if (fd == -1) {
return false;
}
receive_new(fd, NULL, NULL);
// TODO: add file.[ch]
receive_flow->new(fd, NULL, NULL);
return true;
}
@@ -145,7 +146,8 @@ bool opts_add_exec_send(char *arg) {
bool opts_add_stdin(char __attribute__((unused)) *arg) {
int fd = dup(0);
assert(!fcntl(fd, F_SETFD, FD_CLOEXEC));
receive_new(fd, NULL, NULL);
// TODO: add file.[ch]
receive_flow->new(fd, NULL, NULL);
return true;
}