#include <gfxprim.h> /* or */ #include <utils/gp_heap.h> typedef struct gp_heap_head gp_heap_head; gp_heap_head *gp_heap_ins(gp_heap_head *heap, gp_heap_head *elem, int (*cmp)(gp_heap_head *e1, gp_heap_head *e2)); gp_heap_head *gp_heap_pop(gp_heap_head *heap, int (*cmp)(gp_heap_head *e1, gp_heap_head *e2)); gp_heap_head *gp_heap_rem(gp_heap_head *heap, gp_heap_head *elem, int (*cmp)(gp_heap_head *e1, gp_heap_head *e2)); unsigned int gp_heap_size(gp_heap_head *heap);