#ifndef __LIST_H__
#define __LIST_H__

typedef struct 
{
        int             LockId; 
        int             Status;
} LockInf;

typedef struct LockList* LockListPtr;

typedef struct LockList {
			            LockInf    Data;
                        LockListPtr	Next;
} LockList;

void  SetLockInfNull(LockList* list);
LockList* PutInLockList(LockList* list, LockInf d, int position);
int   LockListLength(LockList *list);
void  DestroyLockList(LockList* list);
LockList* GetLockInfLink(LockList* list, int pos);
LockInf  DeleteLockInfLink(LockList* list, int pos);
void  PrintLockList(LockList *list);
int getFreeLock(LockList* list);
void CopyLockInf(LockInf* node1, LockInf* node2);

#endif

