Mutate the list of available module classes at runtime.
More...
Mutate the list of available module classes at runtime.
◆ ModuleDescriptorListEntry
Element of _ModuleDescriptorList.
Contains a pointer to an array of module descriptors (used by awe_moduleDescriptorList_* API functions).
- See also
- ModuleDescriptorList
◆ ModuleDescriptorList
Linked list containing module descriptor entries.
Should be initialized to zeros and manipulated with mutator functions.
◆ awe_moduleDescriptorList_prepend()
Insert an entry at the beginning of the list.
- Parameters
-
| [in] | list | ModuleDescriptorList to mutate. |
| [in] | entry | Entry to prepend. Note that the list does not take ownership of the entry. If it was dynamically allocated, the caller is responsible for freeing it. |
- Returns
- True if the operation was successful, false otherwise.
◆ awe_moduleDescriptorList_append()
Insert an entry at the end of the list.
- Parameters
-
| [in] | list | ModuleDescriptorList to mutate. |
| [in] | entry | Entry to append. Note that the list does not take ownership of the entry. If it was dynamically allocated, the caller is responsible for freeing it. |
- Returns
- True if the operation was successful, false otherwise.
◆ awe_moduleDescriptorList_removeHead()
Remove the first entry of the module descriptor list.
- Parameters
-
| [in] | list | ModuleDescriptorList to mutate. |
- Returns
- The entry which was removed, or NULL if the list is empty/invalid. If the entry was dynamically allocated, then it is now safe to free it.