mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
updated
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1545 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e60d1f0453
commit
fda7100c9d
29
loader/com.h
29
loader/com.h
@ -1,9 +1,13 @@
|
||||
#ifndef AVIFILE_COM_H
|
||||
#define AVIFILE_COM_H
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
/**
|
||||
* Internal functions and structures for COM emulation code.
|
||||
*/
|
||||
|
||||
#ifndef COM_H
|
||||
#define COM_H
|
||||
#ifndef WIN32
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -12,22 +16,26 @@ extern "C" {
|
||||
void* CoTaskMemAlloc(unsigned long cb);
|
||||
void CoTaskMemFree(void* cb);
|
||||
|
||||
#ifndef GUID_TYPE
|
||||
#define GUID_TYPE
|
||||
typedef struct
|
||||
{
|
||||
long f1;
|
||||
short f2;
|
||||
short f3;
|
||||
char f4[8];
|
||||
uint32_t f1;
|
||||
uint16_t f2;
|
||||
uint16_t f3;
|
||||
uint8_t f4[8];
|
||||
} GUID;
|
||||
#endif
|
||||
|
||||
extern GUID IID_IUnknown;
|
||||
extern GUID IID_IClassFactory;
|
||||
|
||||
typedef long (*GETCLASSOBJECT) (GUID* clsid, GUID* iid, void** ppv);
|
||||
int RegisterComClass(GUID* clsid, GETCLASSOBJECT gcs);
|
||||
int UnregisterComClass(GUID* clsid, GETCLASSOBJECT gcs);
|
||||
|
||||
#ifndef STDCALL
|
||||
#define STDCALL __attribute__((__stdcall__))
|
||||
#define STDCALL __attribute__((__stdcall__))
|
||||
#endif
|
||||
|
||||
struct IUnknown;
|
||||
@ -57,11 +65,12 @@ struct IClassFactory
|
||||
};
|
||||
|
||||
long CoCreateInstance(GUID* rclsid, struct IUnknown* pUnkOuter,
|
||||
long dwClsContext, GUID* riid, void** ppv);
|
||||
long dwClsContext, GUID* riid, void** ppv);
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif
|
||||
#endif /* WIN32 */
|
||||
|
||||
#endif /* AVIFILE_COM_H */
|
||||
|
Loading…
Reference in New Issue
Block a user