[Mplayer-cvslog] CVS: main/loader/qtx/qtxsdk components.h,1.2,1.3

Arpi of Ize arpi at mplayer.dev.hu
Sat Nov 10 19:07:01 CET 2001


Update of /cvsroot/mplayer/main/loader/qtx/qtxsdk
In directory mplayer:/var/tmp.root/cvs-serv16682

Modified Files:
	components.h 
Log Message:
updated

Index: components.h
===================================================================
RCS file: /cvsroot/mplayer/main/loader/qtx/qtxsdk/components.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- components.h	9 Nov 2001 03:26:12 -0000	1.2
+++ components.h	10 Nov 2001 18:06:59 -0000	1.3
@@ -1,23 +1,60 @@
 typedef long ComponentResult;
 typedef unsigned char UInt8;
+typedef int OSType;
 
-typedef struct {
-    UInt8	flags;
-    UInt8	paramSize;
-    short	what;
-    long	params[1];
-} ComponentParameters;
-
-typedef struct {
-    long	data[1];
-} ComponentInstace;
+// codec private shit:
+typedef void *GlobalsPtr;
+typedef void **Globals;
 
-typedef int OSType;
 
-typedef struct {
-    OSType	componentType;
-    OSType	componentSubType;
-    OSType	componentManufacturer;
-    unsigned long componentFlags;
-    unsigned long componentFlagsMask;
-} ComponentDescription;
+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;
+




More information about the MPlayer-cvslog mailing list