Ring1_PointerList_initialize
Initialize a pointer list.
Ring1_Result
Ring1_PointerList_initialize
(
Ring1_PointerList *self,
Ring1_Collection_AddedCallback *added,
Ring1_Collection_RemovedCallback *removed
)
This function initializes an uninitialized pointer list with a pointer list's default capacity and the specified added and removed callbacks. This pointer list must not be initialized, otherwise the behavior of this function is undefined.
Parameter variables
self
- A pointer to the pointer list.
added
-
A pointer to an
Ring1_Collection_AddedCallback
function or a null pointer. This function is invoked on an element if it is added to the pointer list. removed
-
A pointer to an
Ring1_Collection_RemovedCallback
function or a null pointer. This function is invoked on an element if it is removed from the pointer list.
Return Values
Ring1_Result_Success
on success,
Ring1_Result_Failure
on failure.