/[zanavi_public1]/navit/navit/layout.c
ZANavi

Diff of /navit/navit/layout.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 31 Revision 34
377 case attr_polyline: 377 case attr_polyline:
378 case attr_circle: 378 case attr_circle:
379 case attr_text: 379 case attr_text:
380 case attr_icon: 380 case attr_icon:
381 case attr_image: 381 case attr_image:
382 case attr_maptile:
382 case attr_arrows: 383 case attr_arrows:
383 itemgra->elements = g_list_append(itemgra->elements, attr->u.element); 384 itemgra->elements = g_list_append(itemgra->elements, attr->u.element);
384 return 1; 385 return 1;
385 default: 386 default:
386 dbg(0, "unknown: %s\n", attr_to_name(attr->type)); 387 dbg(0, "unknown: %s\n", attr_to_name(attr->type));
587 e->type = element_image; 588 e->type = element_image;
588 589
589 return (struct image *) e; 590 return (struct image *) e;
590} 591}
591 592
593struct maptile *
594maptile_new(struct attr *parent, struct attr **attrs)
595{
596 struct element *e;
597
598 e = g_malloc0(sizeof(*e));
599 e->type = element_maptile;
600
601 return (struct maptile *) e;
602}
603
592struct arrows * 604struct arrows *
593arrows_new(struct attr *parent, struct attr **attrs) 605arrows_new(struct attr *parent, struct attr **attrs)
594{ 606{
595 struct element *e; 607 struct element *e;
596 e = g_malloc0(sizeof(*e)); 608 e = g_malloc0(sizeof(*e));

Legend:
Removed from v.31  
changed lines
  Added in v.34

   
Visit the ZANavi Wiki