/*
	File:		DiskCacheExtensions.proto

	Contains:	Prototype information for the file DiskCacheExtensions.c

	Written by:	John Farmer

	Copyright:	© 1991-1992 by Apple Computer, Inc., all rights reserved.

	Change History (most recent first):

		 <3>	  4/1/92	YK		#1023997: InitializeDiskCashe should be a pascal function.
		 <2>	  1/3/92	JSM		Roll-in changes from Sakura: Add
									DumpFontCacheToDiskIfNotTooBig(). Add squashed parameter to
									LoadFontCacheFromDisk().

		System 6.1.0 Changes:
		
		 <2>	 7/10/91	jlf		Added CheckForMaximumDiskCacheSize prototype.
		 <1>	 6/29/91	jlf		Created file.
*/

#ifndef			__DiskCacheExtensionsPrototypes__
#define			__DiskCacheExtensionsPrototypes__

// Include Statements

	#include	"Memory.h"
	#include	"DiskCacheExtensions.h"
	
// Prototypes

	pascal OSErr	InitializeDiskCache( void );
	Integer			FindCacheInCacheList( Handle purgeableHandle, sb_SplineKeyHdl splineKeyHandle );
	pascal void		DiskCachePurgeProcedure( Handle purgeableHandle );
	pascal void		DiskCacheResourceManagerPurgeProcedure( Handle purgeableHandle );
	pascal void		DiskCacheShutDownProcedure( void );
	OSErr			LoadFontCacheFromDisk( sb_CacheHeadHdl* cacheHandlePointer, THz* cacheZonePointer, widthTableHdl widthTableHandle, Boolean squashed );
	OSErr			DumpFontCacheToDiskIfNotTooBig( sb_CacheHeadHdl cacheHandle );
	OSErr			DumpFontCacheToDisk( sb_CacheHeadHdl cacheHandle );
	OSErr			CheckForMaximumDiskCacheSize( sb_CacheHeadHdl cacheHandle );
	OSErr			GetFontCacheFileSize( DiskCacheOffset* fileSizePointer );
	OSErr			SetFontCacheFileSize( DiskCacheOffset newFileSize );
	Boolean			GetFontCacheFileStatus( void );
	void			SetFontCacheFileStatus( Boolean cacheStatus );
	Boolean			FontCacheFileExists( void );
	
#endif			__DiskCacheExtensionsPrototypes__