Root/
| 1 | /* |
| 2 | * file.h - File handling |
| 3 | * |
| 4 | * Written 2009-2011 by Werner Almesberger |
| 5 | * Copyright 2009-2011 by Werner Almesberger |
| 6 | * Copyright 2016, Erich Heinzle (gEDA additions) |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | */ |
| 13 | |
| 14 | |
| 15 | #ifndef FILE_H |
| 16 | #define FILE_H |
| 17 | |
| 18 | #include <stdio.h> |
| 19 | |
| 20 | |
| 21 | /* |
| 22 | * Returns -1 on error. |
| 23 | */ |
| 24 | int file_exists(const char *name); |
| 25 | |
| 26 | char *set_extension(const char *name, const char *ext); |
| 27 | void save_with_backup(const char *name, int (*fn)(FILE *file, const char *one), |
| 28 | const char *one); |
| 29 | int save_to(const char *name, int (*fn)(FILE *file, const char *one), |
| 30 | const char *one); |
| 31 | |
| 32 | void save_fpd(void); |
| 33 | void write_kicad(void); |
| 34 | void write_geda(void); |
| 35 | void write_ps(const char *one); |
| 36 | void write_ps_fullpage(const char *one); |
| 37 | void write_gnuplot(const char *one); |
| 38 | |
| 39 | #endif /* !FILE_H */ |
| 40 |
Branches:
master
