projet-systeme-exploitation.../jobs.h
2021-04-20 18:50:27 +02:00

26 lines
411 B
C

#ifndef __JOBS_H
#define __JOBS_H
typedef struct cell cell;
struct cell {
int id;
int pid;
int state;
char* cmd;
cell* next;
};
typedef cell* list;
void ajouter(cell** list, int pid, int id);
void supprimer(cell** list, int pid);
void afficher(cell** list);
void initialiser(list* list);
void liberer(list* list);
int contiens(list* l_ptr, int pid);
#endif
// state:
// 0: running
// 1: suspended