/*	--------------------------------------------------------------------------------------

	Copyright © 1991, Apple Computer, Inc, All Rights Reserved.
	
	File:		Fragment.proto
		
	Author:		John Farmer
	
	Contains:	Prototype information for the file Fragment.c.
	
	Revisions: (most recent first):
	
		ID		Date		Description
		
		<2>		06/03/91	John Farmer - Added prototype for ExpandFragment routine.
		
		<1>		03/23/91	John Farmer - Created file.
														
	-----------------------------------------------------------------------------------  */


#ifndef			__FragmentPrototypes__
#define			__FragmentPrototypes__


// Include Statements


	#include	"Fragment.h"
	#include	"FragmentTable.h"
	#include	"Memory.h"


// Prototypes

	void	AddFragmentToFragmentTable( FragmentStructureHandle fragment, FragmentStructureHandle nextFragment, FragmentTableStructureHandle fragmentTable );
	void	RemoveFragmentFromFragmentTable( FragmentStructureHandle fragment, FragmentTableStructureHandle fragmentTable );
	void	SetCurrentFragment( FragmentStructureHandle fragment, FragmentTableStructureHandle fragmentTable );
	void	LockFragment( FragmentStructureHandle fragment, FragmentTableStructureHandle fragmentTable );
	void	UnlockFragment( FragmentStructureHandle fragment, FragmentTableStructureHandle fragmentTable );
	OSErr	CreateFragment( FragmentStructureHandle* fragmentPointer, FragmentOffset offset, FragmentOffset length, Handle splineFont );
	OSErr	ExpandFragment( FragmentStructureHandle fragment, FragmentOffset positiveDelta, FragmentTableStructureHandle fragmentTable );
	OSErr	ExpandAndLockFragment(  FragmentStructureHandle *fragmentPointer, FragmentOffset offset, FragmentOffset length, FragmentTableStructureHandle fragmentTable );
	void	FindFragment( FragmentStructureHandle* fragmentPointer, FragmentOffset offset, FragmentOffset length, FragmentTableStructureHandle fragmentTable );
	OSErr	FindOrCreateFragment( FragmentStructureHandle* fragmentPointer, FragmentOffset offset, FragmentOffset length, FragmentTableStructureHandle fragmentTable );
	void	FindFragmentHandle( FragmentStructureHandle* fragmentPointer, Ptr dataPointer, FragmentTableStructureHandle fragmentTable );
	
	
#endif			__FragmentPrototypes__