Defines | |
| #define | POSLIST_ELEMENT(elem, type, member) |
| #define | POSLIST_IS_EMPTY(plisthead) ((plisthead)->next == (POSLIST_t*)(plisthead)) |
| #define | POSLIST_NEXT_ENTRY(plist) (plist)->next |
| #define | POSLIST_PREV_ENTRY(plist) (plist)->prev |
| #define | POSLIST_FIRST_ENTRY(plisthead) (plisthead)->next |
| #define | POSLIST_LAST_ENTRY(plisthead) (plisthead)->prev |
| #define | POSLIST_IS_FIRST_ENTRY(element) ((element)->prev==(element)->head) |
| #define | POSLIST_IS_LAST_ENTRY(element) ((element)->next==(element)->head) |
| #define | POSLIST_IS_END(plisthead, element) ((element)==(POSLIST_t*)(plisthead)) |
| #define | POSLIST_FOR_EACH_ENTRY(plisthead, runvar) |
| #define | POSLIST_FOREACH_BEGIN(plisthead, runvar, type, listmember) |
| #define | POSLIST_FOREACH_END |
Functions | |
| POSEXTERN void | posListAdd (POSLISTHEAD_t *listhead, UVAR_t pos, POSLIST_t *new) |
| POSEXTERN POSLIST_t * | posListGet (POSLISTHEAD_t *listhead, UVAR_t pos, UINT_t timeout) |
| POSEXTERN void | posListRemove (POSLIST_t *listelem) |
| POSEXTERN void | posListJoin (POSLISTHEAD_t *baselisthead, UVAR_t pos, POSLISTHEAD_t *joinlisthead) |
| POSEXTERN UINT_t | posListLen (POSLISTHEAD_t *listhead) |
| POSEXTERN void | posListInit (POSLISTHEAD_t *listhead) |
| POSEXTERN void | posListTerm (POSLISTHEAD_t *listhead) |
|
|
List Macro. This macro enables the access to the data structure that is linked with a list element.
|
|
|
List Macro. Returns a pointer to the first entry of a list. Pay attention to task synchronization when using this macro. |
|
|
List Macro. This macro expands to a for-loop that walks over all list entries in the specified list. The body of the for-loop must be enclosured in braces { }.
|
|
|
List Macro. This macro expands to a complex for-loop that walks over all list entries in the specified list. This macro allows complex operations on the list while being in the loop, and it simplifies the access to the data structures that are linked to the list elements.
|
|
|
List Macro. This macro is the counterpart to POSLIST_FOREACH_BEGIN and must be placed at the end of a for-loop that was initiated with POSLIST_FOREACH_BEGIN. |
|
|
List Macro. Tests if a list is empty. Pay attention to task synchronization when using this macro. |
|
|
List Macro. Tests if the end of a list is reached when using a for-loop. |
|
|
List Macro. Tests if an element is the first one in a list. Pay attention to task synchronization when using this macro. |
|
|
List Macro. Tests if an element is the last one in a list. Pay attention to task synchronization when using this macro. |
|
|
List Macro. Returns a pointer to the last element of a list. Pay attention to task synchronization when using this macro. |
|
|
List Macro. Returns a pointer to the next element in a list. Pay attention to task synchronization when using this macro. |
|
|
List Macro. Returns a pointer to the previous element in a list. Pay attention to task synchronization when using this macro. |
|
||||||||||||||||
|
List Function. Adds an element to a list.
|
|
||||||||||||||||
|
List Function. Takes an element from a list.
|
|
|
List Function. Initializes the head of a list. This function must be called first before elements can be added to the list.
|
|
||||||||||||||||
|
List Function. Joins two lists together. The elements contained in the joinlist are moved to the baselist. After this operation the joinlist is empty.
|
|
|
List Function. Returns the length of a list.
|
|
|
List Function. Removes an element from a list.
|
|
|
List Function. Frees operating system resources when a list is no more needed.
|
1.4.6-NO