17 lines
260 B
C
17 lines
260 B
C
#ifndef JOB_H_
|
|
#define JOB_H_
|
|
|
|
#include <unistd.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef struct job {
|
|
pid_t pid;
|
|
char *command;
|
|
bool status;
|
|
struct job *next;
|
|
} job;
|
|
|
|
int add_job(pid_t pid, char *command, bool status);
|
|
job *get_job(pid_t pid);
|
|
|
|
#endif
|