aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/isdbt/fc8100/LKlist.h
blob: b895866a7c288be3419b2dd25d7963d2f5dc8c70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 */