libopm 0.1
Macros | Functions
list.h File Reference

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_Tlibopm_node_create (void *)
 
OPM_LIST_Tlibopm_list_create (void)
 
OPM_NODE_Tlibopm_list_add (OPM_LIST_T *, OPM_NODE_T *)
 
OPM_NODE_Tlibopm_list_remove (OPM_LIST_T *, OPM_NODE_T *)
 
void libopm_list_free (OPM_LIST_T *)
 
void libopm_node_free (OPM_NODE_T *)
 

Macro Definition Documentation

◆ LIST_FOREACH

#define LIST_FOREACH (   pos,
  head 
)    for (pos = (head); pos != NULL; pos = pos->next)

◆ LIST_FOREACH_SAFE

#define LIST_FOREACH_SAFE (   pos,
  n,
  head 
)    for (pos = (head), n = pos ? pos->next : NULL; pos != NULL; pos = n, n = pos ? pos->next : NULL)

◆ LIST_FOREACH_PREV

#define LIST_FOREACH_PREV (   pos,
  head 
)    for (pos = (head); pos != NULL; pos = pos->prev)

◆ LIST_SIZE

#define LIST_SIZE (   list)    list->elements

Function Documentation

◆ libopm_node_create()

OPM_NODE_T * libopm_node_create ( void *  data)

◆ libopm_list_create()

OPM_LIST_T * libopm_list_create ( void  )

◆ libopm_list_add()

OPM_NODE_T * libopm_list_add ( OPM_LIST_T list,
OPM_NODE_T node 
)

◆ libopm_list_remove()

OPM_NODE_T * libopm_list_remove ( OPM_LIST_T list,
OPM_NODE_T node 
)

◆ libopm_list_free()

void libopm_list_free ( OPM_LIST_T list)

References MyFree.

Referenced by opm_free(), and opm_remote_free().

◆ libopm_node_free()

void libopm_node_free ( OPM_NODE_T node)

References MyFree.

Referenced by opm_end(), opm_free(), and opm_remote_free().


Generated for libopm by  doxygen 1.9.5