]> mj.ucw.cz Git - leo.git/blobdiff - sym.h
Symbolizers may return copy of symbol
[leo.git] / sym.h
diff --git a/sym.h b/sym.h
index d2e294c893c7afc541c99984b19039da35075c84..cb4ac122713abf0c393d7c63bbcbcd4863f4ca5f 100644 (file)
--- a/sym.h
+++ b/sym.h
@@ -33,6 +33,7 @@ struct symbolizer {
   void (*draw)(struct symbol *sym, struct svg *svg);
   void (*gen)(struct osm_object *o, struct style_info *si, struct svg *svg);
   void (*init)(void);
+  struct symbol* (*copy)(struct symbol *sym);
 };
 
 extern struct mempool *sym_mp;
@@ -58,6 +59,8 @@ void sym_draw_all(struct svg *svg);
 void sym_from_style(struct osm_object *o, struct style_results *sr, struct svg *svg);
 z_index_t sym_zindex(struct osm_object *o, struct style_info *si, double default_mzi);
 
+struct symbol * sym_copy(struct symbol *sym);
+
 /* sym-point.c handles point symbols and icons */
 
 struct sym_point {