aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
blob: 09b158543fb93f0dd2e274d42d2795b5f3114c25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef mainh
#define mainh

typedef struct{
    char *prompt;
    char *pre_prompt;
} SHELL_OB;

typedef enum{
    Stdout=0,
    Redirect=1,
    Append=2,
    Pipe=3,
    Continue=4,
    If=5,
} cmd_t;

typedef struct CMD{
    char *cmd;
    cmd_t type;
    int stdInFd;
    char *out_dir;
    struct CMD *next;
    int status;
} CMD;

#endif