Code Examples.
Code Examples.
ClUint32T maxSize = 256;
userDestroyCb, &listHead);
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
ClPtrT ClClistNodeT
The type of the handle for the circular node.
Definition: clClistApi.h:88
ClRcT clClistPreviousNodeGet(CL_IN ClClistT listHead, CL_IN ClClistNodeT currentNode, CL_OUT ClClistNodeT *pPreviousNode)
Returns next node from the list.
ClRcT clClistLastNodeGet(CL_IN ClClistT listHead, CL_OUT ClClistNodeT *pLastNode)
Returns last node from the list.
ClRcT clClistNextNodeGet(CL_IN ClClistT listHead, CL_IN ClClistNodeT currentNode, CL_OUT ClClistNodeT *pNextNode)
Returns next node from the list.
ClRcT clClistAfterNodeAdd(CL_IN ClClistT listHead, CL_IN ClClistNodeT currentNode, CL_IN ClClistDataT userData)
Adds a node after a specified node in the list.
ClPtrT ClClistT
The type of the handle for the circular list.
Definition: clClistApi.h:83
ClRcT clClistSizeGet(CL_IN ClClistT listHead, CL_OUT ClUint32T *pSize)
Returns number of data elements (nodes) in the list.
ClRcT clClistBeforeNodeAdd(CL_IN ClClistT listHead, CL_IN ClClistNodeT currentNode, CL_IN ClClistDataT userData)
Adds a node before a specified node in the list.
ClRcT clClistWalk(CL_IN ClClistT listHead, CL_IN ClClistWalkCallbackT fpUserWalkCallBack, CL_IN void *userArg)
Walks through the list.
ClPtrT ClClistDataT
The type of the handle for the user-data.
Definition: clClistApi.h:93
ClRcT clClistDelete(CL_IN ClClistT *pListHead)
Destroys the list.
ClRcT clClistCreate(CL_IN ClUint32T maxSize, CL_IN ClClistDropPolicyT dropPolicy, CL_IN ClClistDeleteCallbackT fpUserDeleteCallBack, CL_IN ClClistDeleteCallbackT fpUserDestroyCallBack, CL_OUT ClClistT *pListHead)
Creates a Circular Linked List.
ClRcT clClistFirstNodeAdd(CL_IN ClClistT listHead, CL_IN ClClistDataT userData)
Adds a node at the beginning of the list.
ClRcT clClistFirstNodeGet(CL_IN ClClistT listHead, CL_IN ClClistNodeT *pFirstNode)
Returns the first node from the list.
ClRcT clClistLastNodeAdd(CL_IN ClClistT listHead, CL_IN ClClistDataT userData)
Adds a node at the end of the list.
#define CL_OK
Every thing is OK.
Definition: clCommonErrors.h:68
#define CL_HANDLE_INVALID_VALUE
Defines.
Definition: clHandleApi.h:95