Data Structures | |
| struct | section_t |
| Single section description structure. More... | |
| struct | section_set_t |
| Set of the sections description structure. More... | |
| struct | section_iter_t |
| Section iterator structure. More... | |
Macros | |
| #define | SECTION_SET_DEF(_name, _type, _count) |
| Create a set of sections. More... | |
| #define | SECTION_DEF_(_priority, _name, _type) SECTION_DEF(CONCAT_2(_name, _priority), _type); |
| #define | SECTION_SET_DEF_(_priority, _name) |
| #define | SECTION_SET_ITEM_REGISTER(_name, _priority, _var) |
| Macro to declare a variable and register it in the section set. More... | |
Functions | |
| void | section_iter_init (section_iter_t *p_iter, section_set_t const *p_set) |
| Function for initializing the section set iterator. More... | |
| void | section_iter_next (section_iter_t *p_iter) |
| Function for incrementing iterator. More... | |
| static void * | section_iter_get (section_iter_t const *p_iter) |
| Function for getting the element pointed to by the iterator. More... | |
| #define SECTION_SET_DEF | ( | _name, | |
| _type, | |||
| _count | |||
| ) |
Create a set of sections.
A set of sections, is an ordered collections of sections.
| [in] | _name | Name of the set. |
| [in] | _type | Type of the elements stored in the sections. |
| [in] | _count | Number of the sections in the set. This parameter is ignored in case of GCC. |
| #define SECTION_SET_DEF_ | ( | _priority, | |
| _name | |||
| ) |
| #define SECTION_SET_ITEM_REGISTER | ( | _name, | |
| _priority, | |||
| _var | |||
| ) |
Macro to declare a variable and register it in the section set.
| [in] | _name | Name of the section set. |
| [in] | _priority | Priority of the desired section. |
| [in] | _var | The variable to register in the given section. |
|
inlinestatic |
Function for getting the element pointed to by the iterator.
| [in] | p_iter | Pointer to the iterator. |
| Pointer | to the element or NULL if iterator points end of the set. |
| void section_iter_init | ( | section_iter_t * | p_iter, |
| section_set_t const * | p_set | ||
| ) |
Function for initializing the section set iterator.
| [in] | p_iter | Pointer to the iterator. |
| [in] | p_set | Pointer to the sections set. |
| void section_iter_next | ( | section_iter_t * | p_iter | ) |
Function for incrementing iterator.
| [in] | p_iter | Pointer to the iterator. |