projet-systeme-exploitation.../list.h

25 lines
340 B
C
Raw Normal View History

2021-04-24 15:32:54 +00:00
#ifndef __LIST_H
#define __LIST_H
typedef struct job
{
int pid;
char *cmd;
int used;
} job;
typedef struct list {
job *jobs;
int size;
int limit;
} list;
void init(list *list);
void free(list *list);
void print(list *list);
job add(list *list, int pid, char **cmd, int state);
job remove(list *list, int pid);
#endif