Logo Search packages:      
Sourcecode: navit version File versions

int map_set_attr ( struct map this_,
struct attr *  attr 

Sets an attribute of a map.

This sets an attribute of a map, overwriting an attribute of the same type if it already exists. This function also calls all the callbacks that are registred to be called when attributes change.

this_ The map to set the attribute of
attr The attribute to set
True if the attr could be set, false otherwise

Definition at line 146 of file map.c.

References map::attr_cbl, and map::attrs.

      this_->attrs=attr_generic_set_attr(this_->attrs, attr);
      callback_list_call_attr_2(this_->attr_cbl, attr->type, this_, attr);
      return 1;

Generated by  Doxygen 1.6.0   Back to index