vector.h¶
// SPDX-License-Identifier: MIT
-
safuResultE_t elosPluginControlPtrVectorDeleteMembers(elosPluginControlPtrVector_t *controlPtrVector)¶
[source] Frees all member data from a PluginControl data structure
- Parameters:
controlPtrVector – Pointer to of an PluginControlVector data structure
- Returns:
SAFU_RESULT_OK on success
SAFU_RESULT_FAILED on failure
-
safuResultE_t elosPluginControlPtrVectorGetById(elosPluginControlPtrVector_t *controlPtrVector, elosPluginId_t id, elosPluginControl_t **control)¶
[source] Search a PluginControl vector for a PluginControl with the given id and return it when found.
- Parameters:
controlPtrVector – Pointer to of an PluginControlVector data structure
id – id of the PluginControl
control – Pointer to a pointer that will contain the PluginControl when found
- Returns:
SAFU_RESULT_OK on success
SAFU_RESULT_FAILED on failure
-
safuResultE_t elosPluginControlPtrVectorInitialize(elosPluginControlPtrVector_t *controlPtrVector, size_t elements)¶
[source] Initialized a PluginControl vector data structure.
- Parameters:
controlPtrVector – Pointer to of an PluginControlVector data structure
elements – Number of elements the Vector can hold without resizing
- Returns:
SAFU_RESULT_OK on success
SAFU_RESULT_FAILED on failure
-
safuResultE_t elosPluginControlPtrVectorIterate(elosPluginControlPtrVector_t *controlPtrVector, safuVecFunc_t *func, void *data, int *iterResult)¶
[source] Iterates through all elements of an PluginControl vector
- Parameters:
controlPtrVector – Pointer to of an PluginControlVector data structure
func – Function to be called for each element
data – Data to be used with the function (e.g. for comparison)
iterResult – Return value of the iteration
- Returns:
SAFU_RESULT_OK on success
SAFU_RESULT_FAILED on failure
-
safuResultE_t elosPluginControlPtrVectorPush(elosPluginControlPtrVector_t *controlPtrVector, elosPluginControl_t *control)¶
[source] Pushes a new element to a PluginControl vector data structure.
- Parameters:
controlPtrVector – Pointer to of an PluginControlVector data structure
control – PluginControl data structure to be added
- Returns:
SAFU_RESULT_OK on success
SAFU_RESULT_FAILED on failure
-
safuResultE_t elosPluginControlPtrVectorRemoveById(elosPluginControlPtrVector_t *controlPtrVector, elosPluginId_t id)¶
[source] Remove a PluginControl from a PluginControl vector with the given id.
- Parameters:
controlPtrVector – Pointer to of an PluginControlVector data structure
id – id of the PluginControl
- Returns:
SAFU_RESULT_OK on success
SAFU_RESULT_FAILED on failure