1
0
mirror of https://git.code.sf.net/p/fuse-emulator/fuse-utils synced 2025-04-19 08:42:15 +03:00
fuse-utils/utils.h
2021-03-16 19:23:00 +11:00

43 lines
1.4 KiB
C

/* utils.h: useful utility functions
Copyright (c) 2002-2003 Philip Kendall
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Author contact information:
E-mail: philip-fuse@shadowmagic.org.uk
*/
#ifndef FUSE_UTILS_UTILS_H
#define FUSE_UTILS_UTILS_H
#include "libspectrum.h"
int init_libspectrum( void );
int get_creator( libspectrum_creator **creator, const char *program );
int read_file( const char *filename, unsigned char **buffer, size_t *length );
int write_file( const char *filename, const void *buffer, size_t length );
struct rzx_key {
libspectrum_dword id;
const char *description;
libspectrum_rzx_dsa_key key;
};
extern struct rzx_key known_keys[];
#endif /* #ifndef FUSE_UTILS_UTILS_H */