Coconut Framework
beta
|
Define CNListItem data structure. More...
#include "CNResource.h"
Go to the source code of this file.
Classes | |
struct | CNListItem |
Single linked list item. More... | |
Functions | |
static struct CNListItem * | CNAllocateListItem (void *data, struct CNResource *resource) |
Allocate CNListItem. More... | |
static void | CNReleaseListItem (struct CNResource *resource, struct CNListItem *item) |
Release CNListItem object. More... | |
static struct CNListItem * | CNNextListItem (const struct CNListItem *src) |
Get next item of source list item. More... | |
static struct CNListItem * | CNPrevListItem (const struct CNListItem *src) |
Get previous item of source list item. More... | |
static void * | CNDataOfListItem (const struct CNListItem *src) |
Get data of list item. More... | |
Define CNListItem data structure.
|
static |
Allocate CNListItem.
data | Source data pointed by the list item |
resource | Resource pool to allocate the list item |
References CNListItem::_nextItem, CNListItem::_prevItem, CNAllocateData(), and CNListItem::dataPtr.
Referenced by CNMakeEmptyList().
|
inlinestatic |
Release CNListItem object.
resource | Resource pool to store the item |
item | Destination item to be released |
References CNReleaseData().
|
static |
Get next item of source list item.
src | Source item |
References CNListItem::_nextItem.
|
static |
Get previous item of source list item.
src | Source item |
References CNListItem::_prevItem.
|
inlinestatic |
Get data of list item.
src | Source list item |
References CNListItem::dataPtr.