1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
|
/*
File: ResourceForkComponent.h
Version: QuickTime 7.3
Copyright: (c) 1984-2007 by Apple Inc., all rights reserved.
Bugs?: For bug reports, consult the following page on
the World Wide Web:
http://developer.apple.com/bugreporter/
*/
/*.#endif forMasterInterfaces*/
/*.#ifndef forMergedInterface*/
#ifndef __RESOURCEFORKCOMPONENT__
#define __RESOURCEFORKCOMPONENT__
#ifndef __COMPONENTS__
#include <Components.h>
#endif
#if PRAGMA_ONCE
#pragma once
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_IMPORT
#pragma import on
#endif
#if PRAGMA_STRUCT_ALIGN
#pragma options align=mac68k
#elif PRAGMA_STRUCT_PACKPUSH
#pragma pack(push, 2)
#elif PRAGMA_STRUCT_PACK
#pragma pack(2)
#endif
/*.#endif forMergedInterfaces*/
enum {
resourceForkComponentType = FOUR_CHAR_CODE('rfrk')
};
enum {
rfmCanExpand = FOUR_CHAR_CODE('expn'),
rfmCanExpandEasily = FOUR_CHAR_CODE('expe'),
rfmIsMultiStream = FOUR_CHAR_CODE('muls')
};
enum {
rfmQueryForkMask = 1 << 0, /* bit on == resource fork, off == data fork*/
rfmQueryResourceFork = 1 << 0,
rfmQueryDataFork = 0
};
#if CALL_NOT_IN_CARBON
/*
* ResourceForkPathNameMap()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( ComponentResult )
ResourceForkPathNameMap(
ComponentInstance rfi,
char * inDataPath,
char * outRsrcPath,
unsigned long maxLen) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0001, 0x7000, 0xA82A);
/*
* ResourceForkOffsetAndLength()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( ComponentResult )
ResourceForkOffsetAndLength(
ComponentInstance rfi,
char * accessPath,
long queryFlags,
long * dataOffset,
long * dataLength) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0002, 0x7000, 0xA82A);
/*
* ResourceForkGetMethodInfo()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( ComponentResult )
ResourceForkGetMethodInfo(
ComponentInstance rfi,
long queryFlags,
long queryType,
long * answer) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0003, 0x7000, 0xA82A);
/*
* ResourceForkFileLength()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( ComponentResult )
ResourceForkFileLength(
ComponentInstance rfi,
char * accessPath,
long queryFlags,
long * fileLength) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0004, 0x7000, 0xA82A);
/*
* ResourceForkOffsetAndLength64()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( ComponentResult )
ResourceForkOffsetAndLength64(
ComponentInstance rfi,
char * accessPath,
long queryFlags,
wide * dataOffset,
wide * dataLength) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0005, 0x7000, 0xA82A);
/*
* ResourceForkFileLength64()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( ComponentResult )
ResourceForkFileLength64(
ComponentInstance rfi,
char * accessPath,
long queryFlags,
wide * fileLength) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0006, 0x7000, 0xA82A);
/*.#ifndef forMergedInterfaces*/
/* selectors for component calls */
enum {
kResourceForkPathNameMapSelect = 0x0001,
kResourceForkOffsetAndLengthSelect = 0x0002,
kResourceForkGetMethodInfoSelect = 0x0003,
kResourceForkFileLengthSelect = 0x0004,
kResourceForkOffsetAndLength64Select = 0x0005,
kResourceForkFileLength64Select = 0x0006
};
/*.#endif forMergedInterfaces*/
#endif /* CALL_NOT_IN_CARBON */
#if PRAGMA_STRUCT_ALIGN
#pragma options align=reset
#elif PRAGMA_STRUCT_PACKPUSH
#pragma pack(pop)
#elif PRAGMA_STRUCT_PACK
#pragma pack()
#endif
#ifdef PRAGMA_IMPORT_OFF
#pragma import off
#elif PRAGMA_IMPORT
#pragma import reset
#endif
#ifdef __cplusplus
}
#endif
#endif /* __RESOURCEFORKCOMPONENT__ */
|