◆ fiftyoneDegreesListAdd()
void fiftyoneDegreesListAdd | ( | fiftyoneDegreesList * | list, |
fiftyoneDegreesCollectionItem * | item | ||
) |
Adds a collection item to a list.
The reference to the item will be released when the list is released or freed.
- Parameters
-
- list - to add the item to
- item - to add to the list
◆ fiftyoneDegreesListFree()
void fiftyoneDegreesListFree ( fiftyoneDegreesList * list ) Frees the memory allocated to the list structure and release all items stored in it.
- Parameters
-
- list - to free
◆ fiftyoneDegreesListGetAsString()
fiftyoneDegreesString* fiftyoneDegreesListGetAsString ( fiftyoneDegreesList * list, int index ) Gets the item at the index provided as a string.
- Parameters
-
- list - to get the item from
- index - of the item in the list
- Returns
- the requested list item as a string
◆ fiftyoneDegreesListInit()
fiftyoneDegreesList* fiftyoneDegreesListInit ( fiftyoneDegreesList * list, uint32_t capacity ) Initialise the list by allocating space for the items in the list structure.
- Parameters
-
- list - pointer to list structure to initialise
- capacity - number of items expected in the list
- Returns
- the initialised list or NULL if memory could not be allocated
◆ fiftyoneDegreesListRelease()
void fiftyoneDegreesListRelease ( fiftyoneDegreesList * list ) Releases all the items stored in the list.
- Parameters
-
- list - to release
◆ fiftyoneDegreesListReset()
void fiftyoneDegreesListReset ( fiftyoneDegreesList * list ) Resets a newly allocated list to a clean empty state.
- Parameters
-
- list - to reset