Index: plug_io.h =================================================================== --- plug_io.h (revision 30803) +++ plug_io.h (revision 30804) @@ -31,7 +31,8 @@ #define PCB_PLUG_IO_H #include "global_typedefs.h" -#include "plug_footprint.h" +#include "vtlibrary.h" +#include #include typedef enum { /* I/O type bitmask; each bit is one thing to save or load, not all formats support all things */ @@ -41,6 +42,16 @@ PCB_IOT_BUFFER = 8 } pcb_plug_iot_t; +/* Returned by map_footprint() to tell what type of footprint(s) a file contains */ +typedef struct pcb_plug_fp_map_s pcb_plug_fp_map_t; +struct pcb_plug_fp_map_s { + pcb_fptype_t type; + pcb_fplibrary_type_t libtype; /* normally LIB_FOOTPRINT */ + vts0_t tags; + char *name; /* strdup'd */ + pcb_plug_fp_map_t *next; +}; + /**************************** API definition *********************************/ struct pcb_plug_io_s { pcb_plug_io_t *next;