#include "linklist.h"
#include "../memory/memory.h"
Functions | |
PUBLIC linkList_t * | linkList_new (void) |
Create a new link list. | |
PUBLIC wtBoolean | linkList_delete (linkList_t *list) |
Delete link list. | |
PUBLIC wtBoolean | linkList_add (linkList_t *list, void *newElement) |
Add element to link list. | |
PUBLIC wtBoolean | linkList_append (linkList_t *list, void *newElement) |
Add element to the end of the link list. | |
PUBLIC linkList_t * | linkList_addList (linkList_t *list, void *newElement) |
Add element to link list. | |
PUBLIC linkList_t * | linkList_appendList (linkList_t *list, void *newElement) |
Add element to end of link list. | |
PUBLIC wtBoolean | linkList_removeNode (linkList_t *current, void *element) |
Remove node based on element. | |
PUBLIC wtBoolean | linkList_quickRemoveNode (linkList_t *current, linkList_t *previous) |
Remove node. | |
PUBLIC wtBoolean | linkList_deleteFull (linkList_t *list) |
Delete link list and elements. | |
PUBLIC W32 | linkList_count (linkList_t *list) |
Counts the numer of elements in link list. |
PUBLIC wtBoolean linkList_add | ( | linkList_t * | list, | |
void * | newElement | |||
) |
Add element to link list.
[in] | list | Pointer to linkList_t structure. |
[in] | newElement | Element to add to link list. |
PUBLIC linkList_t* linkList_addList | ( | linkList_t * | list, | |
void * | newElement | |||
) |
Add element to link list.
[in] | list | Pointer to linkList_t structure. |
[in] | newElement | Element to add to link list. |
PUBLIC wtBoolean linkList_append | ( | linkList_t * | list, | |
void * | newElement | |||
) |
Add element to the end of the link list.
[in] | list | Pointer to linkList_t structure. |
[in] | newElement | Element to add to link list. |
PUBLIC linkList_t* linkList_appendList | ( | linkList_t * | list, | |
void * | newElement | |||
) |
Add element to end of link list.
[in] | list | Pointer to linkList_t structure. |
[in] | newElement | Element to add to link list. |
PUBLIC W32 linkList_count | ( | linkList_t * | list | ) |
Counts the numer of elements in link list.
[in] | list | Pointer to linkList_t structure. |
PUBLIC wtBoolean linkList_delete | ( | linkList_t * | list | ) |
Delete link list.
[in] | list | Pointer to linkList_t structure. |
PUBLIC wtBoolean linkList_deleteFull | ( | linkList_t * | list | ) |
Delete link list and elements.
[in] | list | Pointer to linkList_t structure. |
PUBLIC linkList_t* linkList_new | ( | void | ) |
Create a new link list.
PUBLIC wtBoolean linkList_quickRemoveNode | ( | linkList_t * | current, | |
linkList_t * | previous | |||
) |
Remove node.
[in] | current | Node to remove. |
[in] | previous | Previous Node in chain. |
PUBLIC wtBoolean linkList_removeNode | ( | linkList_t * | current, | |
void * | element | |||
) |
Remove node based on element.
[in] | list | Pointer to linkList_t structure. |
[in] | element | Pointer to element of node to remove. |