aboutsummaryrefslogtreecommitdiff
path: root/include/minishell.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/minishell.h')
-rw-r--r--include/minishell.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/minishell.h b/include/minishell.h
index 5e27ffa..97293c2 100644
--- a/include/minishell.h
+++ b/include/minishell.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/26 15:33:51 by cacharle #+# #+# */
-/* Updated: 2020/02/28 12:34:21 by cacharle ### ########.fr */
+/* Updated: 2020/02/28 15:30:10 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -30,6 +30,8 @@
# include "ms_parse.h"
# define MS_PATH_KEY "PATH"
+# define MS_PIPE_WRITE 1
+# define MS_PIPE_READ 0
typedef struct
{
@@ -43,6 +45,12 @@ typedef struct
t_ftht *environment;
} t_state;
+typedef struct
+{
+ int pipe_in[2];
+ int pipe_out[2];
+} t_command_frame;
+
/*
** state.c
*/