HALFRED  0.4.0
Data Structures | Macros | Typedefs | Functions
hal_linklist.h File Reference

Unidirectional link list API. More...

Detailed Description

Unidirectional link list API.

Purpose
HALFRED Hardware Abstraction Layer
Version
Revision
1558
License
$License$
#include "hal_defs.h"
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  LLSTItemDesc
 
struct  LLSTListDesc
 

Macros

#define LLST_DECLARE(name, size, attributes)
 

Typedefs

typedef struct LLSTItemDesc LLSTItemDesc
 
typedef struct LLSTItemDescLLSTItem
 
typedef struct LLSTListDescLLSTList
 

Functions

HALRESULT LLST_Init (LLSTList list, LLSTItem items, size_t size)
 
HALRESULT LLST_Deinit (LLSTList list)
 
HALRESULT LLST_AddItem (LLSTList list, const void *data, LLSTItem *new_item)
 
const void * LLST_UnlinkFirstItem (LLSTList list)
 
const void * LLST_UnlinkLastItem (LLSTList list)
 
const void * LLST_UnlinkItem (LLSTList list, LLSTItem item)
 
LLSTItem LLST_GetFirstItem (LLSTList list)
 
LLSTItem LLST_GetNextItem (LLSTItem item)
 
LLSTItem LLST_GetLastItem (LLSTList list)
 
LLSTItem LLST_GetItemByIndex (LLSTList list, size_t index)
 
LLSTItem LLST_GetItemByData (LLSTList list, const void *data)
 
const void * LLST_GetItemData (LLSTItem item)
 
HALRESULT LLST_SetItemData (LLSTItem item, const void *data)