queue.h
576 Bytes
#ifndef __QUEUE_H_
#define __QUEUE_H_
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <stddef.h>
#include "pump.h"
struct action {
char *command;
int running;
double start;
double duration;
double end;
int level;
struct action *next;
};
struct action *head = NULL;
struct action *tail = NULL;
struct action *current = NULL;
void insert(char *command, double start, double duration, int level);
/* void insert(char *command, unsigned int start, int duration, int level); */
void loop_queue();
void setup_queue();
#endif