Mercurial > hg > Members > kent > CbCTaskManager
annotate List.h @ 0:5b089096921f
first commit.
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Dec 2009 21:57:05 +0900 |
parents | |
children | 803d6bf22e6d |
rev | line source |
---|---|
0 | 1 #ifndef _LIST_H |
2 #define _LIST_H | |
3 | |
4 typedef struct _List { | |
5 void *data; | |
6 struct _List *next; | |
7 struct _List *prev; | |
8 } List; | |
9 | |
10 List * _listAddFirst(List*, void *); | |
11 List * _listRemove(List *, void *); | |
12 void * _listGetnthData(List *, int); | |
13 | |
14 typedef int (*ApplyFn)(void*,void*); | |
15 void _listApply(List *, ApplyFn, void *); | |
16 | |
17 #endif /* !_LIST_H */ |