Blame view

app/superdaemon/main.h 558 Bytes
8f39550ce   김태훈   superdaemon 추가
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 MAIN_H
  #define MAIN_H
  
  #include  <sys/types.h>
  
  #define   TRUE                1
  #define   FALSE               0
                                
  #define   ERR_NONE            0
  #define   ERR_PATH_TOO_LONG   -1
  #define   ERR_EXE_TOO_LONG    -2
  #define   ERR_PARAMS_TO0_LONG -3;
  #define   ERR_TOO_MANY_PARAMS -4;
  #define   ERR_EXECUTE         -5;
  
  typedef struct
  {
    char *full_filename;
    char *params[20];
    int   interval;
    int   count_down;
    int   error;
    pid_t pid;
  } task_t;
  
                                    
  #endif