2023-03-28 09:55:08 -04:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* cmd.h :+: :+: :+: */
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
/* Created: 2023/03/28 15:47:01 by cchauvet #+# #+# */
|
2023-04-07 11:12:48 -04:00
|
|
|
/* Updated: 2023/04/07 15:03:53 by alouis-j ### ########.fr */
|
2023-03-28 09:55:08 -04:00
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
2023-03-10 06:32:39 -05:00
|
|
|
#ifndef CMD_H
|
|
|
|
# define CMD_H
|
|
|
|
# include <stdbool.h>
|
|
|
|
# include "../data/data.h"
|
|
|
|
|
|
|
|
typedef struct s_cmd
|
|
|
|
{
|
|
|
|
int fd_in[2];
|
|
|
|
int fd_out[2];
|
|
|
|
int pid;
|
|
|
|
char *executable;
|
|
|
|
char **args;
|
|
|
|
bool own_cmd;
|
|
|
|
} t_cmd;
|
|
|
|
|
|
|
|
void ft_cmddel(void *content);
|
2023-04-07 11:12:48 -04:00
|
|
|
void ft_cmdwaiter(void *content);
|
2023-03-31 10:36:15 -04:00
|
|
|
void ft_cmdcloser(void *ptr);
|
2023-03-10 06:32:39 -05:00
|
|
|
|
|
|
|
#endif
|