/*
	File:		AddDiskCache.proto

	Contains:	Prototype information for the file AddDiskCache.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 MarkMapDirty.
									FindOrPurgeSpaceForDiskCache is now MakeSpaceInDiskCache.
		 <1>	 7/17/91	jlf		Created file.

*/

#ifndef			__AddDiskCachePrototypes__
#define			__AddDiskCachePrototypes__

// Include Statements

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

// Prototypes

	OSErr	GetCacheExpansionInformation( DiskCacheOffset* expansionSizePointer, DiskCacheOffset* expansionOffsetPointer, DiskCacheOffset* nextCacheOffsetPointer, DiskCacheIndex cacheIndex, DiskCacheMapStructureHandle diskCacheMapHandle );
	OSErr	MarkMapDirty( Boolean dirtyOrNot, DiskCacheMapStructureHandle diskCacheMapHandle );
	OSErr	PurgeDiskCaches( DiskCacheOffset spaceNeeded, DiskCacheMapStructureHandle diskCacheMapHandle );
	OSErr	AllocateLockedBufferForCompression( Size* bufferSizePointer, Handle* bufferHandlePointer, THz* bufferZonePointer );
	void	DisposeOfCompressionBuffer( Handle bufferHandle, THz bufferZone );
	OSErr	CompressDiskCacheFile( DiskCacheMapStructureHandle diskCacheMapHandle );
	OSErr	MakeSpaceInDiskCache( DiskCacheIndex* cacheIndexPointer, DiskCacheOffset* logicalOffsetPointer, DiskCacheOffset contiguousBlockSize, DiskCacheMapStructureHandle diskCacheMapHandle );
	OSErr	WriteDiskCache( DiskCacheIndex cacheIndex, sb_CacheHeadHdl cacheHandle, DiskCacheMapStructureHandle diskCacheMapHandle );
	OSErr	AddDiskCache( DiskCacheIndex* cacheIndexPointer, sb_CacheHeadHdl cacheHandle, DiskCacheMapStructureHandle diskCacheMapHandle );
	
#endif			__AddDiskCachePrototypes__