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