summaryrefslogtreecommitdiffstats
path: root/loader/qtx
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-10 18:06:59 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-10 18:06:59 +0000
commit61ec1f62670a6e8c4348f57a671bec49dd903255 (patch)
tree768c47bf6ece04ecd44c79a294969138a2694982 /loader/qtx
parent67ebcf2aafe5cc63111497be3eea8162c41a7b15 (diff)
downloadmpv-61ec1f62670a6e8c4348f57a671bec49dd903255.tar.bz2
mpv-61ec1f62670a6e8c4348f57a671bec49dd903255.tar.xz
updated
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2798 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/qtx')
-rw-r--r--loader/qtx/qtxsdk/components.h72
1 files changed, 55 insertions, 17 deletions
diff --git a/loader/qtx/qtxsdk/components.h b/loader/qtx/qtxsdk/components.h
index 911422c244..5dee018b74 100644
--- a/loader/qtx/qtxsdk/components.h
+++ b/loader/qtx/qtxsdk/components.h
@@ -1,23 +1,61 @@
typedef long ComponentResult;
typedef unsigned char UInt8;
+typedef int OSType;
-typedef struct {
- UInt8 flags;
- UInt8 paramSize;
- short what;
- long params[1];
-} ComponentParameters;
+// codec private shit:
+typedef void *GlobalsPtr;
+typedef void **Globals;
-typedef struct {
- long data[1];
-} ComponentInstace;
-typedef int OSType;
+struct ComponentParameters {
+ UInt8 flags; /* call modifiers: sync/async, deferred, immed, etc */
+ UInt8 paramSize; /* size in bytes of actual parameters passed to this call */
+ short what; /* routine selector, negative for Component management calls */
+ long params[1]; /* actual parameters for the indicated routine */
+};
+typedef struct ComponentParameters ComponentParameters;
+
+
+struct ComponentDescription {
+ OSType componentType; /* A unique 4-byte code indentifying the command set */
+ OSType componentSubType; /* Particular flavor of this instance */
+ OSType componentManufacturer; /* Vendor indentification */
+ unsigned long componentFlags; /* 8 each for Component,Type,SubType,Manuf/revision */
+ unsigned long componentFlagsMask; /* Mask for specifying which flags to consider in search, zero during registration */
+};
+typedef struct ComponentDescription ComponentDescription;
+
+
+struct ResourceSpec {
+ OSType resType; /* 4-byte code */
+ short resID; /* */
+};
+typedef struct ResourceSpec ResourceSpec;
+
+
+struct ComponentResource {
+ ComponentDescription cd; /* Registration parameters */
+ ResourceSpec component; /* resource where Component code is found */
+ ResourceSpec componentName; /* name string resource */
+ ResourceSpec componentInfo; /* info string resource */
+ ResourceSpec componentIcon; /* icon resource */
+};
+typedef struct ComponentResource ComponentResource;
+typedef ComponentResource * ComponentResourcePtr;
+typedef ComponentResourcePtr * ComponentResourceHandle;
+
+
+struct ComponentRecord {
+ long data[1];
+};
+typedef struct ComponentRecord ComponentRecord;
+typedef ComponentRecord * Component;
+
+
+struct ComponentInstanceRecord {
+ long data[1];
+};
+typedef struct ComponentInstanceRecord ComponentInstanceRecord;
+
+typedef ComponentInstanceRecord * ComponentInstance;
-typedef struct {
- OSType componentType;
- OSType componentSubType;
- OSType componentManufacturer;
- unsigned long componentFlags;
- unsigned long componentFlagsMask;
-} ComponentDescription;