diff pads2gpcb/struct.h @ 40:1c37bec20596

pads2gpcb: slowly working on the decal processing logic
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Mon, 11 Jan 2016 08:12:40 +0000
parents aa0539cc3d41
children 4a50888d09ce
line wrap: on
line diff
--- a/pads2gpcb/struct.h	Mon Jan 11 05:09:25 2016 +0000
+++ b/pads2gpcb/struct.h	Mon Jan 11 08:12:40 2016 +0000
@@ -1,3 +1,12 @@
+struct pad_shape_info {
+	int	valid;
+	int	rounded;
+	int	elongated;
+	long	short_dim;
+	long	long_dim;
+	int	angle;
+};
+
 struct footprint_pad {
 	long	x1;
 	long	y1;
@@ -6,14 +15,14 @@
 	long	thickness;
 	long	clearance;
 	long	mask;
-	int	is_square;
+	struct	pad_shape_info shape;
 };
 
 struct footprint_body {
-	size_t	copysize;
 	int	src_units;
 	int	npins;
 	struct	footprint_pad *pins;
+	struct	pad_shape_info default_pad;
 	long	mark_x;
 	long	mark_y;
 	long	refdes_x;
@@ -24,7 +33,7 @@
 
 struct part_decal {
 	char	*name;
-	struct	footprint_body *fpbody;
+	struct	footprint_body *body;
 	struct	part_decal *next;
 };