job.h (260B)
1 #ifndef JOB_H_ 2 #define JOB_H_ 3 4 #include <unistd.h> 5 #include <stdbool.h> 6 7 typedef struct job { 8 pid_t pid; 9 char *command; 10 bool status; 11 struct job *next; 12 } job; 13 14 int add_job(pid_t pid, char *command, bool status); 15 job *get_job(pid_t pid); 16 17 #endif