libopm
0.1
|
Macros | |
#define | LIST_FOREACH(pos, head) for (pos = (head); pos != NULL; pos = pos->next) |
#define | LIST_FOREACH_SAFE(pos, n, head) for (pos = (head), n = pos ? pos->next : NULL; pos != NULL; pos = n, n = pos ? pos->next : NULL) |
#define | LIST_FOREACH_PREV(pos, head) for (pos = (head); pos != NULL; pos = pos->prev) |
#define | LIST_SIZE(list) list->elements |
Functions | |
OPM_NODE_T * | libopm_node_create (void *) |
OPM_LIST_T * | libopm_list_create (void) |
OPM_NODE_T * | libopm_list_add (OPM_LIST_T *, OPM_NODE_T *) |
OPM_NODE_T * | libopm_list_remove (OPM_LIST_T *, OPM_NODE_T *) |
void | libopm_list_free (OPM_LIST_T *) |
void | libopm_node_free (OPM_NODE_T *) |
#define LIST_FOREACH | ( | pos, | |
head | |||
) | for (pos = (head); pos != NULL; pos = pos->next) |
Referenced by opm_active(), opm_cycle(), and opm_endscan().
#define LIST_FOREACH_SAFE | ( | pos, | |
n, | |||
head | |||
) | for (pos = (head), n = pos ? pos->next : NULL; pos != NULL; pos = n, n = pos ? pos->next : NULL) |
Referenced by libopm_config_free(), opm_active(), opm_cycle(), opm_end(), opm_free(), and opm_remote_free().
#define LIST_FOREACH_PREV | ( | pos, | |
head | |||
) | for (pos = (head); pos != NULL; pos = pos->prev) |
#define LIST_SIZE | ( | list | ) | list->elements |
Referenced by opm_active(), opm_cycle(), and opm_scan().
OPM_NODE_T* libopm_node_create | ( | void * | ) |
References _libopm_node::data, MyMalloc, _libopm_node::next, and _libopm_node::prev.
Referenced by libopm_config_set(), opm_active(), opm_addtype(), opm_remote_addtype(), and opm_scan().
OPM_LIST_T* libopm_list_create | ( | void | ) |
References _libopm_list::elements, _libopm_list::head, MyMalloc, and _libopm_list::tail.
Referenced by libopm_config_create(), opm_active(), opm_create(), and opm_remote_create().
OPM_NODE_T* libopm_list_add | ( | OPM_LIST_T * | , |
OPM_NODE_T * | |||
) |
References _libopm_list::elements, _libopm_list::head, _libopm_node::next, _libopm_node::prev, and _libopm_list::tail.
Referenced by libopm_config_set(), opm_active(), opm_addtype(), opm_cycle(), opm_remote_addtype(), and opm_scan().
OPM_NODE_T* libopm_list_remove | ( | OPM_LIST_T * | , |
OPM_NODE_T * | |||
) |
References _libopm_list::elements, _libopm_list::head, _libopm_node::next, _libopm_node::prev, and _libopm_list::tail.
Referenced by opm_active(), opm_cycle(), opm_end(), opm_free(), and opm_remote_free().
void libopm_list_free | ( | OPM_LIST_T * | ) |
References MyFree.
Referenced by opm_active(), opm_free(), and opm_remote_free().
void libopm_node_free | ( | OPM_NODE_T * | ) |
References MyFree.
Referenced by opm_active(), opm_cycle(), opm_end(), opm_free(), and opm_remote_free().