[redland-dev] raptor_world_get_parser_description ()

Dave Beckett dave at dajobe.org
Fri Aug 22 00:46:32 EDT 2014


On 8/16/14, 12:42 PM, Victor Porton wrote:
> raptor_world_get_parser_description ()
> Returns : description or NULL if counter is out of range
> 
> But there are no way to know the range of the counter! (except to start from zero and calling raptor_world_get_parser_description() with counter increasing by one until it return NULL).
> 
> I think that a function to return the number of parsers was forgotten.
> 
> Or is it a deliberate design decision to call raptor_world_get_parser_description() with counter increasing by one until it return NULL?
> 
> The same applies for raptor_world_get_serializer_description ().

It was a deliberate decision to make an iteration since you generally walk
through the list entirely to find what you want.

Dave




More information about the redland-dev mailing list