view List.h @ 1:aef83aed7a07

scheduler test success.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Sun, 20 Dec 2009 20:46:53 +0900
parents 5b089096921f
children 803d6bf22e6d
line wrap: on
line source

#ifndef _LIST_H
#define _LIST_H

typedef struct _List {
	void *data;
	struct _List *next;
	struct _List *prev;
} List;

List * _listAddFirst(List*, void *);
List * _listRemove(List *, void *);
void * _listGetnthData(List *, int);

typedef int (*ApplyFn)(void*,void*);
void _listApply(List *, ApplyFn, void *);

#endif /* !_LIST_H */