summaryrefslogtreecommitdiff
path: root/src/user/app/shell/shell.h
diff options
context:
space:
mode:
authordzwdz2022-07-28 18:06:23 +0200
committerdzwdz2022-07-28 18:06:23 +0200
commita0b16620e1699504e8d21a481e019dec40d7ee1b (patch)
tree657835c863dc5cf88d003af29fa9b7836f728cd6 /src/user/app/shell/shell.h
parent473cc957826064840bce7a5c5ff97614e0c6cb9e (diff)
user/shell: redirections
Diffstat (limited to 'src/user/app/shell/shell.h')
-rw-r--r--src/user/app/shell/shell.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/user/app/shell/shell.h b/src/user/app/shell/shell.h
index 986ce22..4c7eeb3 100644
--- a/src/user/app/shell/shell.h
+++ b/src/user/app/shell/shell.h
@@ -1,4 +1,10 @@
#pragma once
+#include <stdbool.h>
#include <stddef.h>
-int parse(char *str, char **argv, size_t argvlen, char **redir);
+struct redir {
+ const char *stdout;
+ bool append;
+};
+
+int parse(char *s, char **argv, size_t argvlen, struct redir *redir);