summaryrefslogtreecommitdiff
path: root/src/include/prioq.h
blob: cbddd9b53bee0eed9d3a29b3319fa774896eb5e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef PRIOQ_H
#define PRIOQ_H

#include "genalloc.h"

#include "datetime.h"

struct prioq_elt {
  datetime_sec dt;
  unsigned long id;
};

GEN_ALLOC_typedef(prioq, struct prioq_elt, p, len, a)

    int prioq_insert();
int prioq_min();
void prioq_delmin();

#endif