Debian Codegraph @

macICTypes.h

raw symbols SCIP
1 /* (C) Copyright 1993,1994 by Carnegie Mellon University
2 * All Rights Reserved.
3 *
4 * Permission to use, copy, modify, distribute, and sell this software
5 * and its documentation for any purpose is hereby granted without
6 * fee, provided that the above copyright notice appear in all copies
7 * and that both that copyright notice and this permission notice
8 * appear in supporting documentation, and that the name of Carnegie
9 * Mellon University not be used in advertising or publicity
10 * pertaining to distribution of the software without specific,
11 * written prior permission. Carnegie Mellon University makes no
12 * representations about the suitability of this software for any
13 * purpose. It is provided "as is" without express or implied
14 * warranty.
15 *
16 * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
17 * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18 * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
19 * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
21 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
22 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
23 * SOFTWARE.
24 */
25 /*
26 The canonical Internet Config interface is defined in Pascal. These headers have
27 not been thoroughly tested. If there is a conflict between these headers and the
28 Pascal interfaces, the Pascal should take precedence.
29 */
30
31 /* ///////////////////////////////////////////////////////////////////////////////// */
32
33 #ifndef __ICTYPES__
34 #define __ICTYPES__
35
36 #ifndef __TYPES__
37 #include <Types.h>
38 #endif
39
40 /* ///////////////////////////////////////////////////////////////////////////////// */
41
42 #if defined(powerc) || defined (__powerc)
43 #pragma options align=mac68k
44 #endif
45
46 enum {
47 icPrefNotFoundErr = -666, /* preference not found (duh!) */
48 icPermErr = -667, /* cannot set preference */
49 icPrefDataErr = -668, /* problem with preference data */
50 icInternalErr = -669, /* hmm, this is not good */
51 icTruncatedErr = -670, /* more data was present than was returned */
52 icNoMoreWritersErr = -671 /* you cannot begin a write session because someone else is already doing it */
53 };
54
55 enum {
56 ICattr_no_change = 0xFFFFFFFFL, /* supply this to ICSetPref to tell it not to change the attributes */
57 ICattr_locked_bit = 0, /* bits in the preference attributes */
58 ICattr_locked_mask = 0x00000001L /* masks for the above */
59 };
60
61 #define ICfiletype 'ICAp'
62 #define ICcreator 'ICAp'
63
64 #define ICdefault_file_name "\pInternet Preferences" /* default file name, for internal use, overridden by a component resource */
65
66 enum {
67 ICdefault_file_name_ID = 1024 /* ID of resource in component file */
68 };
69
70 struct ICDirSpec { /* a record that specifies a folder */
71 short vRefNum;
72 long dirID;
73 };
74 typedef struct ICDirSpec ICDirSpec;
75
76 typedef ICDirSpec ICDirSpecArray[4]; /* an array of the above */
77 typedef ICDirSpecArray *ICDirSpecArrayPtr; /* a pointer to that array */
78
79 typedef long ICAttr; /* type for preference attributes */
80 typedef long ICError; /* type for error codes */
81 typedef Ptr ICInstance; /* opaque type for preference reference */
82 enum {
83 icNoPerm = 0,
84 icReadOnlyPerm = 1,
85 icReadWritePerm = 2
86 };
87 typedef unsigned char ICPerm;
88
89 #if defined(powerc) || defined(__powerc)
90 #pragma options align=reset
91 #endif
92
93 #endif