20 lines
280 B
C
20 lines
280 B
C
#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);
|
|
void ft_cmd_waiter(void *content);
|
|
|
|
#endif
|