resources.h

Go to the documentation of this file.
00001 
00002 /*  $Id: resources.h 451 2005-09-07 17:45:53Z icreedon $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #ifndef resourcesinclude
00029 #define resourcesinclude
00030 
00031 
00032 #ifndef shelltypesinclude
00033 
00034     #include "shelltypes.h"
00035 
00036 #endif
00037 
00038 
00039 /*prototypes*/
00040 
00041 /*
00042 2005-09-02 creedon: added support for fork parameter, added short to many of the prototypes, see resources.c: openresourcefile and pushresourcefile 
00043 */ 
00044 
00045 extern boolean getstringlist (short, short, bigstring);
00046 
00047 extern boolean findstringlist (bigstring, short, short *);
00048 
00049 extern boolean closeresourcefile (short);
00050 
00051 extern boolean openresourcefile (const tyfilespec *, short *, short);
00052 
00053 extern boolean writeresource (ResType, short, bigstring, long, void *);
00054 
00055 extern boolean copyresource (short, short, ResType, short);
00056 
00057 extern boolean copyallresources (short, short);
00058 
00059 extern Handle getresourcehandle (ResType, short);
00060 
00061 extern void releaseresourcehandle (Handle);
00062 
00063 extern Handle filegetresource (short, ResType, short, bigstring);
00064 
00065 extern boolean filereadresource (short, ResType, short, bigstring, long, void *);
00066 
00067 extern boolean filewriteresource (short, ResType, short, bigstring, long, void *);
00068 
00069 extern boolean saveresource (const tyfilespec *, short, ResType, short, bigstring, long, void *, short);
00070 
00071 extern boolean saveresourcehandle (const tyfilespec *, ResType, short, bigstring, Handle, short);
00072 
00073 extern boolean loadresource (const tyfilespec *, short, ResType, short, bigstring, long, void *, short);
00074 
00075 extern boolean loadresourcehandle (const tyfilespec *, ResType, short, bigstring, Handle *, short);
00076 
00077 extern boolean deleteresource (const tyfilespec *, ResType, short, bigstring, short);
00078 
00079 extern boolean getnumresourcetypes (const tyfilespec *, short *, short);
00080 
00081 extern boolean getnthresourcetype (const tyfilespec *, short, ResType *, short);
00082 
00083 extern boolean getnumresources (const tyfilespec *, ResType, short *, short);
00084 
00085 extern boolean getnthresourcehandle (const tyfilespec *, ResType, short, short *, bigstring, Handle *, short);
00086 
00087 extern boolean getresourceattributes (const tyfilespec *, ResType, short, bigstring, short *, short);
00088 
00089 extern boolean setresourceattributes (const tyfilespec *, ResType, short, bigstring, short, short);
00090 
00091 #endif
00092 
00093 
00094 /*constants*/
00095 
00096 typedef enum tyforktype {
00097 
00098     resourcefork = 1, 
00099 
00100     datafork
00101 
00102     } tyforktype;
00103 

Generated on Wed May 31 18:20:00 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6