1 /* snapshot.h: snapshot handling routines 2 Copyright (c) 1999,2001-2002 Philip Kendall 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License along 15 with this program; if not, write to the Free Software Foundation, Inc., 16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 17 18 Author contact information: 19 20 E-mail: philip-fuse@shadowmagic.org.uk 21 22 */ 23 24 #ifndef FUSE_SNAPSHOT_H 25 #define FUSE_SNAPSHOT_H 26 27 #ifndef LIBSPECTRUM_LIBSPECTRUM_H 28 #include <libspectrum.h> 29 #endif /* #ifndef LIBSPECTRUM_LIBSPECTRUM_H */ 30 31 int snapshot_read( const char *filename ); 32 int snapshot_read_buffer( const unsigned char *buffer, size_t length, 33 libspectrum_id_t type ); 34 35 int snapshot_copy_from( libspectrum_snap *snap ); 36 37 int snapshot_write( const char *filename ); 38 int snapshot_copy_to( libspectrum_snap *snap ); 39 40 #endif 41