|
From: creedon <icr...@us...> - 2005-09-07 17:45:47
|
Update of /cvsroot/frontierkernel/Frontier/Common/headers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2358 Modified Files: resources.h Log Message: added support for get/put of resources from/to data fork of file on Mac OS Index: resources.h =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/headers/resources.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** resources.h 11 Jan 2005 22:48:02 -0000 1.2 --- resources.h 7 Sep 2005 17:45:39 -0000 1.3 *************** *** 39,42 **** --- 39,46 ---- /*prototypes*/ + /* + 2005-09-02 creedon: added support for fork parameter, added short to many of the prototypes, see resources.c: openresourcefile and pushresourcefile + */ + extern boolean getstringlist (short, short, bigstring); *************** *** 45,49 **** extern boolean closeresourcefile (short); ! extern boolean openresourcefile (const tyfilespec *, short *); extern boolean writeresource (ResType, short, bigstring, long, void *); --- 49,53 ---- extern boolean closeresourcefile (short); ! extern boolean openresourcefile (const tyfilespec *, short *, short); extern boolean writeresource (ResType, short, bigstring, long, void *); *************** *** 63,89 **** 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 --- 67,103 ---- extern boolean filewriteresource (short, ResType, short, bigstring, long, void *); ! extern boolean saveresource (const tyfilespec *, short, ResType, short, bigstring, long, void *, short); ! extern boolean saveresourcehandle (const tyfilespec *, ResType, short, bigstring, Handle, short); ! extern boolean loadresource (const tyfilespec *, short, ResType, short, bigstring, long, void *, short); ! extern boolean loadresourcehandle (const tyfilespec *, ResType, short, bigstring, Handle *, short); ! extern boolean deleteresource (const tyfilespec *, ResType, short, bigstring, short); ! extern boolean getnumresourcetypes (const tyfilespec *, short *, short); ! extern boolean getnthresourcetype (const tyfilespec *, short, ResType *, short); ! extern boolean getnumresources (const tyfilespec *, ResType, short *, short); ! extern boolean getnthresourcehandle (const tyfilespec *, ResType, short, short *, bigstring, Handle *, short); ! extern boolean getresourceattributes (const tyfilespec *, ResType, short, bigstring, short *, short); ! extern boolean setresourceattributes (const tyfilespec *, ResType, short, bigstring, short, short); #endif + /*constants*/ + + typedef enum tyforktype { + + resourcefork = 1, + + datafork + + } tyforktype; + |