diff options
Diffstat (limited to 'drivers/media/isdbt/fc8100/LKlist.h')
-rw-r--r-- | drivers/media/isdbt/fc8100/LKlist.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/drivers/media/isdbt/fc8100/LKlist.h b/drivers/media/isdbt/fc8100/LKlist.h new file mode 100644 index 0000000..b895866 --- /dev/null +++ b/drivers/media/isdbt/fc8100/LKlist.h @@ -0,0 +1,44 @@ +#ifndef LKLIST_INC +#define LKLIST_INC + +#include <stdlib.h> +#include <stdio.h> +#include <string.h> + +typedef int position; + +typedef struct node *nodeptr; +typedef struct node { + void *data; + nodeptr next; + nodeptr prior; +} listnode; + +typedef struct listrec *listptr; +typedef struct listrec { + nodeptr head; + nodeptr current; + position elSize; + position n; + position icurrent; +} list; + +position LKAdvanceList(listptr); +void LKClearList(listptr); +int LKCreateList(listptr*, position); +position LKCurrent(listptr); +void LKDeleteFromList(listptr, position); +int LKEmptyList(listptr); +void LKGetFromList(listptr, position, void *); +position LKGotoInList(listptr, position); +int LKInsertAfterInList(listptr, position, void *); +int LKInsertBeforeInList(listptr, position, void *); +position LKSearchList(listptr, void *); +position LKLastInList(listptr); +void LKPutInList(listptr, position, void *); +position LKReverseList(listptr); +void LKZapList(listptr *); + + +#endif +/* LKLIST_INC */ |