CS3413/Assignment4/lib/queue.h

28 lines
421 B
C
Raw Normal View History

2023-10-24 13:50:05 -03:00
#ifndef QUEUE_H
#define QUEUE_H
#include <stdbool.h>
#include "process.h"
typedef struct Queue {
Process *start;
Process *end;
int size;
} Queue;
2023-10-26 17:15:05 -03:00
int contains(Queue *queue, char *username);
2023-10-24 13:50:05 -03:00
2023-10-26 17:15:05 -03:00
Process *search(Queue *queue, char *username);
2023-10-24 13:50:05 -03:00
void enqueue(Queue *queue, Process *process);
Process *dequeue(Queue *queue);
void printList(Queue *queue);
int stop(Queue *queue);
Queue* createQueue();
#endif //QUEUE_H