Name

lqr_vmap_list_foreach — perform operations on all LqrVMap objects in an LqrVMapList object

Synopsis

#include <lqr.h>
LqrRetVal lqr_vmap_list_foreach(LqrVMapList* list,
 LqrVMapFunc func,
 gpointer data);
 

Description

The function lqr_vmap_list_foreach can be used to apply the function func to all the LqrVMap objects listed in list. The parameter data is used to pass arguments to the function.

The list value should be obtained through the function lqr_vmap_list_start(3).

The function func is of type LqrVMapFunc, whose prototype is defined by:

typedef LqrRetVal (*LqrVMapFunc) (LqrVMap *vmap, gpointer data);
                        

The data argument is of type gpointer, which is just a pointer to void.

See also

LqrRetVal(3), lqr_vmap_list_start(3), lqr_vmap_list_current(3), lqr_vmap_list_next(3), lqr_vmap_internal_dump(3), lqr_carver_set_dump_vmaps(3)