Index: layer.h =================================================================== --- layer.h (revision 38753) +++ layer.h (revision 38754) @@ -117,7 +117,9 @@ #include "obj_poly_list.h" #include "obj_text_list.h" #include "obj_gfx_list.h" +#include "global_typedefs.h" + struct pcb_layer_s { /* holds information about one layer */ PCB_ANY_OBJ_FIELDS; @@ -156,6 +158,11 @@ } meta; unsigned is_bound:1; + + /* Optional: if not NULL, call this instead of rendering objects from + layer data, after setting up info an info->xform; lets plugins + implement their own custom draw functions */ + void (*plugin_draw)(pcb_draw_info_t *info, const pcb_layer_t *Layer); }; /* returns the layer number for the passed copper or silk layer pointer */