2501
|
1 typedef long ComponentResult;
|
|
2 typedef unsigned char UInt8;
|
|
3 typedef int OSType;
|
|
4
|
2797
|
5 // codec private shit:
|
|
6 typedef void *GlobalsPtr;
|
|
7 typedef void **Globals;
|
|
8
|
|
9
|
|
10 struct ComponentParameters {
|
|
11 UInt8 flags; /* call modifiers: sync/async, deferred, immed, etc */
|
|
12 UInt8 paramSize; /* size in bytes of actual parameters passed to this call */
|
|
13 short what; /* routine selector, negative for Component management calls */
|
|
14 long params[1]; /* actual parameters for the indicated routine */
|
|
15 };
|
|
16 typedef struct ComponentParameters ComponentParameters;
|
|
17
|
|
18
|
|
19 struct ComponentDescription {
|
|
20 OSType componentType; /* A unique 4-byte code indentifying the command set */
|
|
21 OSType componentSubType; /* Particular flavor of this instance */
|
|
22 OSType componentManufacturer; /* Vendor indentification */
|
|
23 unsigned long componentFlags; /* 8 each for Component,Type,SubType,Manuf/revision */
|
|
24 unsigned long componentFlagsMask; /* Mask for specifying which flags to consider in search, zero during registration */
|
|
25 };
|
|
26 typedef struct ComponentDescription ComponentDescription;
|
|
27
|
|
28
|
|
29 struct ResourceSpec {
|
|
30 OSType resType; /* 4-byte code */
|
|
31 short resID; /* */
|
|
32 };
|
|
33 typedef struct ResourceSpec ResourceSpec;
|
|
34
|
|
35
|
|
36 struct ComponentResource {
|
|
37 ComponentDescription cd; /* Registration parameters */
|
|
38 ResourceSpec component; /* resource where Component code is found */
|
|
39 ResourceSpec componentName; /* name string resource */
|
|
40 ResourceSpec componentInfo; /* info string resource */
|
|
41 ResourceSpec componentIcon; /* icon resource */
|
|
42 };
|
|
43 typedef struct ComponentResource ComponentResource;
|
|
44 typedef ComponentResource * ComponentResourcePtr;
|
|
45 typedef ComponentResourcePtr * ComponentResourceHandle;
|
|
46
|
|
47
|
|
48 struct ComponentRecord {
|
|
49 long data[1];
|
|
50 };
|
|
51 typedef struct ComponentRecord ComponentRecord;
|
|
52 typedef ComponentRecord * Component;
|
|
53
|
|
54
|
|
55 struct ComponentInstanceRecord {
|
|
56 long data[1];
|
|
57 };
|
|
58 typedef struct ComponentInstanceRecord ComponentInstanceRecord;
|
|
59
|
|
60 typedef ComponentInstanceRecord * ComponentInstance;
|
|
61
|