select.c: Rename SelectConnection() to SelectByFlag() and add flag parameter
[geda-pcb/pcjc2.git] / src / file.h
blob4056bc94f9817cf0dc5ff4e2c2ff7add659da817
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 PreLoadElementPCB (void);
50 void PostLoadElementPCB (void);
51 void sort_netlist (void);
53 /*
54 * Whenever the pcb file format is modified, this version number
55 * should be updated to the date when the new code is committed.
56 * It will be written out to the file and also used by pcb to give
57 * guidance to the user as to what the minimum version of pcb required
58 * is.
61 /* This is the version needed by the file we're saving. */
62 int PCBFileVersionNeeded (void);
64 /* This is the version we support. */
65 #define PCB_FILE_VERSION 20110603
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