Back to home page

MITgcm

 
 

    


File indexing completed on 2018-03-02 18:44:49 UTC

view on githubraw file Latest commit ec6cf3b0 on 2003-08-26 20:45:25 UTC
ec6cf3b09d Ed H*0001 /* (C) Copyright 1993,1994 by Carnegie Mellon University
                0002  * All Rights Reserved.
                0003  *
                0004  * Permission to use, copy, modify, distribute, and sell this software
                0005  * and its documentation for any purpose is hereby granted without
                0006  * fee, provided that the above copyright notice appear in all copies
                0007  * and that both that copyright notice and this permission notice
                0008  * appear in supporting documentation, and that the name of Carnegie
                0009  * Mellon University not be used in advertising or publicity
                0010  * pertaining to distribution of the software without specific,
                0011  * written prior permission.  Carnegie Mellon University makes no
                0012  * representations about the suitability of this software for any
                0013  * purpose.  It is provided "as is" without express or implied
                0014  * warranty.
                0015  *
                0016  * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
                0017  * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
                0018  * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
                0019  * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
                0020  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
                0021  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
                0022  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
                0023  * SOFTWARE.
                0024  */
                0025 /*
                0026         The canonical Internet Config interface is defined in Pascal.  These headers have
                0027         not been thoroughly tested.  If there is a conflict between these headers and the
                0028         Pascal interfaces, the Pascal should take precedence.
                0029 */
                0030 
                0031 /* ///////////////////////////////////////////////////////////////////////////////// */
                0032 
                0033 #ifndef __ICTYPES__
                0034 #define __ICTYPES__
                0035 
                0036 #ifndef __TYPES__
                0037 #include <Types.h>
                0038 #endif
                0039 
                0040 /* ///////////////////////////////////////////////////////////////////////////////// */
                0041 
                0042 #if defined(powerc) || defined (__powerc)
                0043 #pragma options align=mac68k
                0044 #endif
                0045 
                0046 enum {
                0047         icPrefNotFoundErr = -666,               /* preference not found (duh!) */
                0048         icPermErr = -667,                                               /* cannot set preference */
                0049         icPrefDataErr = -668,                           /* problem with preference data */
                0050         icInternalErr = -669,                           /* hmm, this is not good */
                0051         icTruncatedErr = -670,                  /* more data was present than was returned */
                0052         icNoMoreWritersErr = -671               /* you cannot begin a write session because someone else is already doing it */
                0053 };
                0054 
                0055 enum {
                0056         ICattr_no_change = 0xFFFFFFFFL,                         /* supply this to ICSetPref to tell it not to change the attributes */
                0057         ICattr_locked_bit = 0,                                                          /* bits in the preference attributes */
                0058         ICattr_locked_mask = 0x00000001L                        /* masks for the above */
                0059 };
                0060 
                0061 #define ICfiletype 'ICAp'
                0062 #define ICcreator 'ICAp'
                0063 
                0064 #define ICdefault_file_name "\pInternet Preferences"    /* default file name, for internal use, overridden by a component resource */
                0065 
                0066 enum {
                0067         ICdefault_file_name_ID = 1024                                   /* ID of resource in component file */
                0068 };
                0069 
                0070 struct ICDirSpec {                                                                                      /* a record that specifies a folder */
                0071         short vRefNum;
                0072         long dirID;
                0073 };
                0074 typedef struct ICDirSpec ICDirSpec;
                0075 
                0076 typedef ICDirSpec ICDirSpecArray[4];            /* an array of the above */
                0077 typedef ICDirSpecArray *ICDirSpecArrayPtr;      /* a pointer to that array */
                0078 
                0079 typedef long ICAttr;                                                                            /* type for preference attributes */
                0080 typedef long ICError;                                                                           /* type for error codes */
                0081 typedef Ptr ICInstance;                                                                 /* opaque type for preference reference */
                0082 enum {
                0083         icNoPerm = 0,
                0084         icReadOnlyPerm = 1,
                0085         icReadWritePerm = 2
                0086 };
                0087 typedef unsigned char ICPerm;
                0088 
                0089 #if defined(powerc) || defined(__powerc)
                0090 #pragma options align=reset
                0091 #endif
                0092 
                0093 #endif