6
typedef int (*heap_compare_func)(const void *a, const void *b);
8
struct heap *heap_init(heap_compare_func);
9
void heap_destroy(struct heap **);
10
void heap_push(struct heap *, void *);
11
void *heap_pop(struct heap *);
12
void *heap_replace(struct heap *, void *);
13
void *heap_peek(struct heap *);
14
void *heap_get(struct heap *, size_t);
15
size_t heap_size(struct heap *);
17
#endif /* MY_HEAP_H */