11#ifndef __OBSERVER_NUMBERCHANGEDFUNCTIONLIST_H__
12#define __OBSERVER_NUMBERCHANGEDFUNCTIONLIST_H__
void NumberChangedFunctionList_Initialize(NumberChangedFunctionList *functionList)
Initialize the given function pointer list.
void(* NumberChangedFunction)(uint32_t)
Alias for a function that receives notifications about a number change.
bool NumberChangedFunctionList_Add(NumberChangedFunctionList *functionList, NumberChangedFunction function)
Add a function pointer to the given function pointer list.
bool NumberChangedFunctionList_Copy(NumberChangedFunctionList *sourceList, NumberChangedFunctionList *destinationList)
Duplicate the given source function pointer list into the destination function pointer list.
void NumberChangedFunctionList_Remove(NumberChangedFunctionList *functionList, int functionIndex)
Removed the function pointer at the given index from the function pointer list.
int NumberChangedFunctionList_Find(NumberChangedFunctionList *functionList, NumberChangedFunction function)
Search the function list for the specified function pointer.
void NumberChangedFunctionList_Clear(NumberChangedFunctionList *functionList)
Clear the given function pointer list, releasing all associated memory. The function list can then be...
Represents a dynamic list of function pointers of the type NumberChangedFunction.
size_t functions_count
Number of active function pointers in the functions array.
size_t allocation_count
The number of function pointers that can be held in the functions array.
NumberChangedFunction * functions
Array of function pointers.