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 |
|
---|
5 | struct elem;
|
---|
6 |
|
---|
7 | struct list {
|
---|
8 | struct elem *first, *last;
|
---|
9 | int size, elems;
|
---|
10 | };
|
---|
11 |
|
---|
12 | struct elem {
|
---|
13 | struct elem *next;
|
---|
14 | void *data;
|
---|
15 | };
|
---|
16 |
|
---|
17 | struct list *list_new(int size);
|
---|
18 | int list_push(struct list *list, void *data);
|
---|
19 | void *list_pop(struct list *list);
|
---|
20 | void *list_first(struct list *list);
|
---|
21 | int list_elems(struct list *list);
|
---|
22 | void list_delete(struct list *list);
|
---|
23 | int list_remove(struct list *list, void *elem);
|
---|
24 | void list_map(struct list *list, void (* func)(void *arg));
|
---|
25 |
|
---|
26 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.