fs_lib,arm9的fat文件系统
源代码在线查看: link.h
/*
* @(#)link.h
* @date 2005/12/25
* @version 1.0
* @author Zhou Shangpin.
* Copyright 2005 Anyka corporation, Inc. All rights reserved.
* ANYKA PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
#ifndef _LINK_H_
#define _LINK_H_
#include "object.h"
#include "mem_api.h"
typedef struct LinkItem* T_PLINKITEM;
typedef struct LinkItem T_LINKITEM;
struct LinkItem
{
T_POBJECT data;
T_PLINKITEM prev;
T_PLINKITEM next;
};
struct Link
{
T_OBJECT object;
T_PLINKITEM head;
T_PLINKITEM tail;
T_PLINKITEM ptr;
};
typedef struct Link T_LINK;
typedef struct Link* T_PLINK;
T_VOID Link_Destroy(T_PLINK obj);
T_VOID Link_Initial(T_PLINK obj);
T_U32 Link_Search(T_PLINK obj, T_POBJECT item);
T_POBJECT Link_Get(T_PLINK obj, T_U32 pos);
T_VOID Link_First(T_PLINK obj);
T_VOID Link_Last(T_PLINK obj);
T_POBJECT Link_Next(T_PLINK obj);
T_POBJECT Link_Prev(T_PLINK obj);
T_BOOL Link_Delete(T_PLINK obj);
T_BOOL Link_Insert(T_PLINK obj, T_POBJECT item);
T_BOOL Link_IsEmpty(T_PLINK obj);
#endif