source: azure_iot_hub_f767zi/trunk/asp_baseplatform/lwip/contrib-2.1.0/ports/unix/port/include/netif/list.h@ 457

Last change on this file since 457 was 457, checked in by coas-nagasima, 4 years ago

ファイルを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 514 bytes
Line 
1
2#ifndef LWIP_LIST_H
3#define LWIP_LIST_H
4
5struct elem;
6
7struct list {
8 struct elem *first, *last;
9 int size, elems;
10};
11
12struct elem {
13 struct elem *next;
14 void *data;
15};
16
17struct list *list_new(int size);
18int list_push(struct list *list, void *data);
19void *list_pop(struct list *list);
20void *list_first(struct list *list);
21int list_elems(struct list *list);
22void list_delete(struct list *list);
23int list_remove(struct list *list, void *elem);
24void list_map(struct list *list, void (* func)(void *arg));
25
26#endif
Note: See TracBrowser for help on using the repository browser.