rockbox/uisimulator/list.h
Daniel Stenberg 9f6733fcc8 Initial revision
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4 a1c6a512-1295-4272-9138-f99709370657
2002-03-25 14:21:30 +00:00

38 lines
411 B
C++

#ifndef LIST_H
#define LIST_H
class ListWalk {
public:
ListWalk(class List *list);
void restart();
void* getNext();
private:
int index;
class List *list;
};
class List {
friend ListWalk;
public:
List();
void* getNext(void *); // next after this
int getSize();
bool add(void *);
void *remove(void *);
private:
void **data;
int datasize;
int size;
};
#endif // LIST_H