annotate loader/qtx/qtxsdk/components.h @ 3839:b608086bf84e

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