librdf_new_iterator

Name

librdf_new_iterator --  Constructor - create a new librdf_iterator object

Synopsis

librdf_iterator* librdf_new_iterator (librdf_world * world, void* context, int (*is_end_method) (void*), int (*next_method) (void*), void* (*get_method) (void*, int), void (*finished_method) (void*));

Arguments

world

redland world object

context

context to pass to the iterator functions

is_end_method

function to call to see if the iteration has ended

next_method

function to get the next element

get_method

function to get the next element

finished_method

function to destroy the iterator context (or NULL if not needed)

Return value

a new librdf_iterator object or NULL on failure