07-07-2026
24 lines
1.2 kB
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* heap.h :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: mleitao <marvin@42.fr> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2026/07/07 00:29:19 by mleitao #+# #+# */
9/* Updated: 2026/07/07 01:00:50 by mleitao ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#ifndef HEAP_H
14# define HEAP_H
15
16# include "codexion.h"
17
18int heap_init(t_heap *h, unsigned int cap);
19void heap_free(t_heap *h);
20void heap_push(t_heap *h, t_req r);
21void heap_remove(t_heap *h, unsigned int coder_id);
22t_req heap_peek(const t_heap *h);
23
24#endif