/*
	File:		DiskCacheMap.proto

	Contains:	Prototype information for the file DiskCacheMap.c.

	Written by:	John Farmer

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

	Change History (most recent first):

		 <2>	  1/3/92	JSM		Roll-in changes from Sakura: Add squashed parameter to
									SearchForDiskCacheUsingWidthTable().
		 <1>	 7/17/91	jlf		Created file.

*/

#ifndef			__DiskCacheMapPrototypes__
#define			__DiskCacheMapPrototypes__

// Include Statements

	#include	"Memory.h"
	#include	"DiskCacheExtensions.h"

// Prototypes


	OSErr	LoadDiskCacheMap( DiskCacheMapStructureHandle* diskCacheMapHandlePointer, Integer fileRefNum );
	OSErr	DumpDiskCacheMap( DiskCacheMapStructureHandle diskCacheMapHandle );
	void	MapFontNameToFontNumber( Boolean* fontExistsPointer, Integer* fontNumberPointer, StringPtr fontName );
	void	FontNameIndexToFontName( StringPtr fontNamePointer, Integer fontNameIndex, DiskCacheMapStructureHandle diskCacheMapHandle );
	OSErr	FontNameToFontNameIndex( Integer *fontNameIndexPointer, StringPtr fontNamePointer, DiskCacheMapStructureHandle diskCacheMapHandle );
	Boolean	CompareDiskCacheEntry( DiskCacheEntryStructure searchTemplate, DiskCacheIndex cacheIndex, DiskCacheMapStructureHandle diskCacheMapHandle );
	OSErr	SearchForDiskCache( DiskCacheIndex* cacheIndexPointer, DiskCacheEntryStructure searchTemplate, DiskCacheMapStructureHandle diskCacheMapHandle );
	OSErr	SearchForDiskCacheUsingWidthTable( DiskCacheIndex* cacheIndexPointer, widthTableHdl widthTableHandle,
				DiskCacheMapStructureHandle diskCacheMapHandle, Boolean squashed );
	OSErr	SearchForDiskCacheUsingCache( DiskCacheIndex* cacheIndexPointer, sb_CacheHeadHdl cacheHandle, DiskCacheMapStructureHandle diskCacheMapHandle );
	
#endif			__DiskCacheMapPrototypes__