Default STEP export to board only
[geda-pcb/pcjc2/v2.git] / src / file.h
blobaa4355fed647ab8e37faebc86b51ed7595b9af81
1 /*!
2 * \file src/file.h
4 * \brief Prototypes for file routines.
6 * <hr>
8 * <h1><b>Copyright.</b></h1>\n
10 * PCB, interactive printed circuit board design
12 * Copyright (C) 1994,1995,1996 Thomas Nau
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 * Contact addresses for paper mail and Email:
29 * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
30 * Thomas.Nau@rz.uni-ulm.de
33 #ifndef PCB_FILE_H
34 #define PCB_FILE_H
36 #include <stdio.h> /* needed to define 'FILE *' */
37 #include "global.h"
39 FILE *CheckAndOpenFile (char *, bool, bool, bool *, bool *);
40 FILE *OpenConnectionDataFile (void);
41 int SavePCB (char *);
42 int LoadPCB (char *);
43 int RevertPCB (void);
44 void EnableAutosave (void);
45 void Backup (void);
46 void SaveInTMP (void);
47 void EmergencySave (void);
48 void DisableEmergencySave (void);
49 int ReadLibraryContents (void);
50 int ImportNetlist (char *);
51 int SaveBufferElements (char *);
52 void sort_netlist (void);
54 int PCBFileVersionNeeded (void);
55 /*!< This is the version needed by the file we're saving. */
57 #define PCB_FILE_VERSION 20170218
59 /*!< \brief This is the version we support.
61 * Whenever the pcb file format is modified, this version number
62 * should be updated to the date when the new code is committed.
63 * It will be written out to the file and also used by pcb to
64 * give guidance to the user as to what the minimum version of
65 * pcb required is.
68 #ifndef HAS_ATEXIT
69 #ifdef HAS_ON_EXIT
70 void GlueEmergencySave (int, caddr_t);
71 #else
72 void SaveTMPData (void);
73 void RemoveTMPData (void);
74 #endif
75 #endif
77 #endif