librdf_iterator_add_map

Name

librdf_iterator_add_map --  Add a librdf_iterator mapping function

Synopsis

int librdf_iterator_add_map (librdf_iterator* iterator, librdf_iterator_map_handler map_function, librdf_iterator_map_free_context_handler free_context, void * map_context);

Arguments

iterator

the iterator

map_function

-- undescribed --

free_context

the function to use to free the context (or NULL)

map_context

the context to pass to the map function

Description

Adds an iterator mapping function which operates over the iterator to select which elements are returned; it will be applied as soon as this method is called.

Several mapping functions can be added and they are applied in the order given

The mapping function should return non 0 to allow the element to be returned.

Return value

Non 0 on failure