// ------------------------------------------------------------------------------------------------
// MyFile.h
//
// Header for MyFile.c
//
// COPYRIGHT (C) SEGA OF AMERICA, INC. 1998
// All rights reserved.
//
// Information and source code samples contained herein are 
// provided "as-is", without representations or warranties, and 
// are subject to change without notice.
//
// SEGA OF AMERICA, INC. cannot support modifications or 
// derivative works created from the sample source code provided. 
// Developers may use, reproduce, and modify portions or entire 
// sections of the sample source code for the purposes of creating
// Dreamcast applications.  
//
// Sample source code contained herein may not be appropriate 
// for use under all circumstances.  Please consult Developer 
// documentation provided along with your Dreamcast unit for
// additional information and suggestions.
//
//
// Author: Ralph "Cooksey" Thomas
//
// Tabs:	4
//
// Rev:		05/04/99	File Originated
// ------------------------------------------------------------------------------------------------


#ifndef _MY_FILE_H
#define _MY_FILE_H

#ifdef __cplusplus
extern "C" {
#endif

KTBOOL MyStreamIoProc(KTSTRING fileName,ACFILE * sd,KTU8 * buffer,KTU32 * size,AM_FILE_OPERATION_MODE mode);
KTBOOL MyFileIoProc(KTSTRING fileName,ACFILE * fd,KTU8 * buffer,KTU32 * size,AM_FILE_OPERATION_MODE mode);

KTBOOL	MyFileOpen				(KTSTRING fileName,ACFILE *fd);
KTBOOL	MyFileRead				(ACFILE fd,KTU8 * buffer,KTU32 size);
KTBOOL	MyFileClose				(ACFILE fd);
KTBOOL	MyFileReadFromTo		(KTSTRING fileName,KTU8 * buffer,KTU32 fromByte,KTU32 toByte);
KTBOOL	MyFileGetSize			(KTSTRING fileName,KTU32 * size);
KTBOOL	MyFileRewind			(ACFILE fd);
KTBOOL 	MyFileLoad				(KTSTRING fileName,volatile KTU32 *buffer);
KTBOOL	_MyFileAllocateHandle	(ACFILE *fd);
void 	_MyFileFreeHandle		(ACFILE fd);
void 	MyFileInit				(void);


#ifdef __cplusplus
}
#endif


#endif
