#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