Logo Search packages:      
Sourcecode: navit version File versions

struct item* map_search_get_item ( struct map_search this_  )  [read]

Returns an item from a map search.

This returns an item of the result of a search on a map and advances the "item pointer" one step, so that at the next call the next item will be returned. If there are no more items in the result NULL is returned.

this_ Map search struct of the search
One item of the result

Definition at line 424 of file map.c.

References map_search::m, map_methods::map_search_get_item, map::meth, map_search::priv, and map_search::search_attr.

Referenced by mapset_search_get_item().

      struct item *ret;

      if (! this_)
            return NULL;
      if (this_->search_attr.type >= attr_country_all && this_->search_attr.type <= attr_country_name)
            return country_search_get_item(this_->priv);
      if (ret)
      return ret;

Generated by  Doxygen 1.6.0   Back to index