1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-11-25 00:47:10 +02:00
fped/file.h
Erich Heinzle 7081258910 diff for gEDA PCB export in fped
I have

1) sorted out the tabbing

2) simplified > 1 element export by exporting elements in a layout (.pcb)

3) documented incompatibilities in the README

4) done it as a diff against origin master

let me know if you need anything else done

Cheers.

Erich

From dae69d9a63071a15c213c72e70b86fe963a67dd4 Mon Sep 17 00:00:00 2001
From: erich_heinzle <a1039181@gmail.com>
Date: Sun, 22 Jan 2017 23:48:57 +1030
Subject: [PATCH] support for export to gEDA format of single and multiple
 footprints in a .pcb layout
2017-01-22 13:15:26 -03:00

40 lines
1001 B
C

/*
* file.h - File handling
*
* Written 2009-2011 by Werner Almesberger
* Copyright 2009-2011 by Werner Almesberger
* Copyright 2016, Erich Heinzle (gEDA additions)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef FILE_H
#define FILE_H
#include <stdio.h>
/*
* Returns -1 on error.
*/
int file_exists(const char *name);
char *set_extension(const char *name, const char *ext);
void save_with_backup(const char *name, int (*fn)(FILE *file, const char *one),
const char *one);
int save_to(const char *name, int (*fn)(FILE *file, const char *one),
const char *one);
void save_fpd(void);
void write_kicad(void);
void write_geda(void);
void write_ps(const char *one);
void write_ps_fullpage(const char *one);
void write_gnuplot(const char *one);
#endif /* !FILE_H */