summaryrefslogtreecommitdiff
path: root/include/pipex.h
diff options
context:
space:
mode:
authorDominik Kaiser2024-05-07 15:30:14 +0200
committerDominik Kaiser2024-05-07 15:30:14 +0200
commitff846486ce845beab8b0fe31c227b5c5ad620bb9 (patch)
tree7baf5d54899e6da59b87c9a9cf1d394863b04e20 /include/pipex.h
parent7af46f10e23296baa72b70e5fbc72eb35e2a9b01 (diff)
downloadpipex-ff846486ce845beab8b0fe31c227b5c5ad620bb9.tar.gz
pipex-ff846486ce845beab8b0fe31c227b5c5ad620bb9.zip
Still restoring
Diffstat (limited to 'include/pipex.h')
-rw-r--r--include/pipex.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/pipex.h b/include/pipex.h
index 1a79cf1..8f24cc0 100644
--- a/include/pipex.h
+++ b/include/pipex.h
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/29 14:04:28 by dkaiser #+# #+# */
-/* Updated: 2024/04/29 16:38:38 by dkaiser ### ########.fr */
+/* Updated: 2024/05/07 15:29:47 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -16,4 +16,16 @@
# include "../libft/libft.h"
# include <unistd.h>
+typedef struct s_pxdata
+{
+ int in_fd;
+ int out_fd;
+ char **cmds;
+} t_pxdata;
+
+char **get_split_path(char *envp[]);
+char *get_pwd(char *envp[]);
+char *find_in_path(char *cmd, char **path);
+char *get_cmd_path(char *cmd, char **path, char *pwd);
+t_pxdata *get_pxdata(int argc, char *argv[], char *envp[]);
#endif // PIPEX_H