
#ifndef resourcesinclude
#define resourcesinclude


#ifndef shelltypesinclude

	#include "shelltypes.h"

#endif


/*prototypes*/

extern boolean getstringlist (short, short, bigstring);

extern boolean findstringlist (bigstring, short, short *);

extern boolean closeresourcefile (short);

extern boolean openresourcefile (const tyfilespec *, short *);

extern boolean writeresource (ResType, short, bigstring, long, void *);

extern boolean copyresource (short, short, ResType, short);

extern boolean copyallresources (short, short);

extern Handle getresourcehandle (ResType, short);

extern void releaseresourcehandle (Handle);

extern Handle filegetresource (short, ResType, short, bigstring);

extern boolean filereadresource (short, ResType, short, bigstring, long, void *);

extern boolean filewriteresource (short, ResType, short, bigstring, long, void *);

extern boolean saveresource (const tyfilespec *, short, ResType, short, bigstring, long, void *);

extern boolean saveresourcehandle (const tyfilespec *, ResType, short, bigstring, Handle);

extern boolean loadresource (const tyfilespec *, short, ResType, short, bigstring, long, void *);

extern boolean loadresourcehandle (const tyfilespec *, ResType, short, bigstring, Handle *);

extern boolean deleteresource (const tyfilespec *, ResType, short, bigstring);

extern boolean getnumresourcetypes (const tyfilespec *, short *);

extern boolean getnthresourcetype (const tyfilespec *, short, ResType *);

extern boolean getnumresources (const tyfilespec *, ResType, short *);

extern boolean getnthresourcehandle (const tyfilespec *, ResType, short, short *, bigstring, Handle *);

extern boolean getresourceattributes (const tyfilespec *, ResType, short, bigstring, short *);

extern boolean setresourceattributes (const tyfilespec *, ResType, short, bigstring, short);

#endif


