CS3413/Assignment4/lib/queue.h

28 lines
411 B
C

#ifndef QUEUE_H
#define QUEUE_H
#include <stdbool.h>
#include "process.h"
typedef struct Queue {
Process *start;
Process *end;
int size;
} Queue;
int contains(Queue *queue, char *job);
Process *search(Queue *queue, char *job);
void enqueue(Queue *queue, Process *process);
Process *dequeue(Queue *queue);
void printList(Queue *queue);
int stop(Queue *queue);
Queue* createQueue();
#endif //QUEUE_H