Fix cross compilation (e.g. on Darwin). Following changes to make.tmpl,
[AROS.git] / arch / all-pc / boot / grub2-aros / include / grub / net / netbuff.h
blob9ac168c897c132f83af9945a19ef1cf52cdadb18
1 #ifndef GRUB_NETBUFF_HEADER
2 #define GRUB_NETBUFF_HEADER
4 #include <grub/misc.h>
6 #define NETBUFF_ALIGN 2048
7 #define NETBUFFMINLEN 64
9 struct grub_net_buff
11 /* Pointer to the start of the buffer. */
12 grub_uint8_t *head;
13 /* Pointer to the data. */
14 grub_uint8_t *data;
15 /* Pointer to the tail. */
16 grub_uint8_t *tail;
17 /* Pointer to the end of the buffer. */
18 grub_uint8_t *end;
21 grub_err_t grub_netbuff_put (struct grub_net_buff *net_buff, grub_size_t len);
22 grub_err_t grub_netbuff_unput (struct grub_net_buff *net_buff, grub_size_t len);
23 grub_err_t grub_netbuff_push (struct grub_net_buff *net_buff, grub_size_t len);
24 grub_err_t grub_netbuff_pull (struct grub_net_buff *net_buff, grub_size_t len);
25 grub_err_t grub_netbuff_reserve (struct grub_net_buff *net_buff, grub_size_t len);
26 grub_err_t grub_netbuff_clear (struct grub_net_buff *net_buff);
27 struct grub_net_buff * grub_netbuff_alloc (grub_size_t len);
28 void grub_netbuff_free (struct grub_net_buff *net_buff);
30 #endif