annotate loader/com.h @ 8204:f2b86274b9d8

Here is a patch to enable qtx-codecs from ./configure --enable-qtx-codecs. Sycotic Smith <sycotic@linuxmail.org>
author arpi
date Sat, 16 Nov 2002 03:06:55 +0000
parents 174e2a58b4cd
children b0d1b415320c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1544
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
1 #ifndef AVIFILE_COM_H
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
2 #define AVIFILE_COM_H
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
3
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
4 #ifdef HAVE_CONFIG_H
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
5 #include <config.h>
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
6 #endif
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
7 #ifdef HAVE_STDINT_H
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
8 #include <stdint.h>
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
9 #else
1544
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
10 #include <inttypes.h>
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
11 #endif
1544
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
12
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 /**
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14 * Internal functions and structures for COM emulation code.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16
1544
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
17 #ifndef WIN32
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 #ifdef __cplusplus
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 extern "C" {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 void* CoTaskMemAlloc(unsigned long cb);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 void CoTaskMemFree(void* cb);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25
1544
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
26 #ifndef GUID_TYPE
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
27 #define GUID_TYPE
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 typedef struct
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 {
1544
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
30 uint32_t f1;
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
31 uint16_t f2;
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
32 uint16_t f3;
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
33 uint8_t f4[8];
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 } GUID;
1544
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
35 #endif
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
37 extern const GUID IID_IUnknown;
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
38 extern const GUID IID_IClassFactory;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
40 typedef long (*GETCLASSOBJECT) (GUID* clsid, const GUID* iid, void** ppv);
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
41 int RegisterComClass(const GUID* clsid, GETCLASSOBJECT gcs);
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
42 int UnregisterComClass(const GUID* clsid, GETCLASSOBJECT gcs);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 #ifndef STDCALL
1544
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
45 #define STDCALL __attribute__((__stdcall__))
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 struct IUnknown;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 struct IClassFactory;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 struct IUnknown_vt
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51 {
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
52 long STDCALL (*QueryInterface)(struct IUnknown* _this, const GUID* iid, void** ppv);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 long STDCALL (*AddRef)(struct IUnknown* _this) ;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 long STDCALL (*Release)(struct IUnknown* _this) ;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 } ;
3128
392316004607 avifile sync... maybe broken, tell me if so.
arpi
parents: 1544
diff changeset
56
392316004607 avifile sync... maybe broken, tell me if so.
arpi
parents: 1544
diff changeset
57 typedef struct IUnknown
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 struct IUnknown_vt* vt;
3128
392316004607 avifile sync... maybe broken, tell me if so.
arpi
parents: 1544
diff changeset
60 } IUnknown;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 struct IClassFactory_vt
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63 {
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
64 long STDCALL (*QueryInterface)(struct IUnknown* _this, const GUID* iid, void** ppv);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 long STDCALL (*AddRef)(struct IUnknown* _this) ;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66 long STDCALL (*Release)(struct IUnknown* _this) ;
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
67 long STDCALL (*CreateInstance)(struct IClassFactory* _this, struct IUnknown* pUnkOuter, const GUID* riid, void** ppvObject);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
68 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
69
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
70 struct IClassFactory
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
71 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
72 struct IClassFactory_vt* vt;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 long CoCreateInstance(GUID* rclsid, struct IUnknown* pUnkOuter,
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3128
diff changeset
76 long dwClsContext, const GUID* riid, void** ppv);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78 #ifdef __cplusplus
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
79 };
1544
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
80 #endif /* __cplusplus */
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
81
1544
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
82 #endif /* WIN32 */
302
a1fe76547e8f gcc 3.0 patch by Felix von Leitner
arpi_esp
parents: 1
diff changeset
83
1544
558c1b03b8d0 updated
arpi
parents: 302
diff changeset
84 #endif /* AVIFILE_COM_H */