Index: plug_io.h =================================================================== --- plug_io.h (revision 27330) +++ plug_io.h (revision 27331) @@ -87,7 +87,7 @@ /* Write the idxth subcircuit from buffer to a file. Return 0 on success. */ int (*write_buffer_subc)(pcb_plug_io_t *ctx, FILE *f, pcb_buffer_t *buff, long idx); - /* Write element data to a file. Return 0 on success. */ + /* Write subcirciots from 'e' to a library file. Return 0 on success. */ int (*write_footprint)(pcb_plug_io_t *ctx, FILE *f, pcb_data_t *e); /* Write PCB to f; there's a copy of the file we are going to @@ -126,7 +126,7 @@ int pcb_parse_pcb(pcb_board_t *Ptr, const char *Filename, const char *fmt, int load_settings, int ignore_missing); int pcb_parse_footprint(pcb_data_t *Ptr, const char *name, const char *fmt); int pcb_parse_font(pcb_font_t *Ptr, const char *Filename); -int pcb_write_buffer(FILE *f, pcb_buffer_t *buff, const char *fmt, pcb_bool elem_only); +int pcb_write_buffer(FILE *f, pcb_buffer_t *buff, const char *fmt, pcb_bool subc_only); int pcb_write_footprint_data(FILE *f, pcb_data_t *e, const char *fmt); int pcb_write_font(pcb_font_t *Ptr, const char *Filename, const char *fmt); @@ -144,7 +144,7 @@ int pcb_save_buffer(const char *Filename, const char *fmt); void pcb_print_quoted_string_(FILE *, const char *); /* without wrapping in "" */ void pcb_print_quoted_string(FILE *, const char *); /* with wrapping in "" */ -int pcb_write_pcb_file(const char *Filename, pcb_bool thePcb, const char *fmt, pcb_bool emergency, pcb_bool elem_only); +int pcb_write_pcb_file(const char *Filename, pcb_bool thePcb, const char *fmt, pcb_bool emergency, pcb_bool subc_only); void pcb_set_design_dir(const char *fn); int pcb_load_buffer(pcb_hidlib_t *hidlib, pcb_buffer_t *buff, const char *fn, const char *fmt);