blob: db61b5987132a10988ee4071df2b5a8365503eea (
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);
extern int prioq_insert(prioq *pq, struct prioq_elt *pe);
extern int prioq_min(prioq *pq, struct prioq_elt *pe);
extern void prioq_delmin(prioq *pq);
#endif
|