#include "list.c"
Data Structures | |
struct | LIST |
Definition of a list. More... | |
Defines | |
#define | LIST_ACTIVE |
This define can be evaluated to check if this module is included and active. | |
Configuration Data | |
The values of these parameters can be overwritten by defining them before including this file. | |
#define | LIST_ARRAY_STEPS 20 |
Choosing higher values results in less copying but requires more memory from beginning. | |
Functions | |
LIST * | LIST_create () |
creates new list. | |
void | LIST_remove (LIST *psHost) |
Removes a list from memory. | |
void | LIST_removeAll (LIST *psHost) |
Removes a list from memory. | |
void | LIST_removeItem (LIST *psHost, int iIndex) |
Remove item from LIST by index. | |
void | LIST_append (LIST *psHost, void *psNewItem) |
Append new item to LIST. | |
void * | LIST_getItem (LIST *psHost, int iIndex) |
Get item from list by index. | |
int | LIST_items (LIST *psHost) |
Get amount of stored items. |
void LIST_append | ( | LIST * | psHost, | |
void * | psNewItem | |||
) |
void* LIST_getItem | ( | LIST * | psHost, | |
int | iIndex | |||
) |
Get item from list by index.
psHost | Pointer to host LIST | |
iIndex | List index for stored item |
int LIST_items | ( | LIST * | psHost | ) |
void LIST_remove | ( | LIST * | psHost | ) |
Removes a list from memory.
Caution: Contained items are not affected and remain in memory!
psHost | Pointer to host LIST |
void LIST_removeAll | ( | LIST * | psHost | ) |
Removes a list from memory.
Contained items are deleted - use with care!! DO NOT USE with stored engine objects!! Take care when storing structs containing pointers to allocated memory!!
psHost | Pointer to host LIST |
void LIST_removeItem | ( | LIST * | psHost, | |
int | iIndex | |||
) |