apt_obj_list.h File Reference
List of Opaque void* Objects.
More...
#include "apt.h"
Go to the source code of this file.
Detailed Description
List of Opaque void* Objects.
Typedef Documentation
Opaque list element declaration
Function Documentation
Create list.
- Parameters:
-
| pool | the pool to allocate list from |
- Returns:
- the created list
Destroy list.
- Parameters:
-
Insert element to the list.
- Parameters:
-
| list | the list to insert element to |
| elem | the element to insert before |
| obj | the object to insert |
| pool | the pool to allocate list element from |
- Returns:
- the inserted element
Retrieve the object associated with element.
- Parameters:
-
| elem | the element to retrieve object from |
Remove element from the list.
- Parameters:
-
| list | the list to remove element from |
| elem | the element to remove |
- Returns:
- the next element (if any)
Retrieve the first element of the list.
- Parameters:
-
| list | the list to retrieve from |
Retrieve object of the first element in the list.
- Parameters:
-
| list | the list to retrieve from |
Query whether the list is empty.
- Parameters:
-
- Returns:
- TRUE if empty, otherwise FALSE
Retrieve the last element of the list.
- Parameters:
-
| list | the list to retrieve from |
Retrieve the next element of the list.
- Parameters:
-
| list | the list to retrieve from |
| elem | the element to retrieve next element from |
Pop object from the list as first in, first out.
- Parameters:
-
| list | the list to pop message from |
- Returns:
- the popped object (if any)
Retrieve the prev element of the list.
- Parameters:
-
| list | the list to retrieve from |
| elem | the element to retrieve prev element from |
Push object to the list as first in, first out.
- Parameters:
-
| list | the list to push object to |
| obj | the object to push |
| pool | the pool to allocate list element from |
- Returns:
- the inserted element
Retrieve object of the last element in the list.
- Parameters:
-
| list | the list to retrieve from |