4 * \brief Prototypes for file routines.
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
36 #include <stdio.h> /* needed to define 'FILE *' */
39 FILE *CheckAndOpenFile (char *, bool, bool, bool *, bool *);
40 FILE *OpenConnectionDataFile (void);
44 void EnableAutosave (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 20110603
58 /*!< \brief This is the version we support.
60 * Whenever the pcb file format is modified, this version number
61 * should be updated to the date when the new code is committed.
62 * It will be written out to the file and also used by pcb to
63 * give guidance to the user as to what the minimum version of
69 void GlueEmergencySave (int, caddr_t
);
71 void SaveTMPData (void);
72 void RemoveTMPData (void);