* Sync up to trunk HEAD (r62975).
[reactos.git] / include / reactos / wine / typeof.h
1 #define typeof(X_) __typeof_ ## X_
2
3 #ifdef _WIN64
4 #define __typeof_intptr long long
5 #define __typeof_longptr long long
6 #else
7 #define __typeof_intptr int
8 #define __typeof_longptr long
9 #endif
10
11 #ifdef __cplusplus
12 #define __typeof_size size_t
13 #define __typeof_wchar wchar_t
14 #else
15 #define __typeof_size __typeof_intptr
16 #define __typeof_wchar unsigned short
17 #endif
18
19 struct IUnknown;
20 struct _tagIMEINFO;
21 struct tagSTYLEBUFW;
22 struct tagCANDIDATELIST;
23 struct tagIMEMENUITEMINFOW;
24 struct _xsltStylesheet;
25 struct jpeg_decompress_struct;
26 struct _iobuf;
27 struct _xsltTransformContext;
28 struct _xmlOutputBuffer;
29
30 typedef struct IWineD3D * (__stdcall typeof(WineDirect3DCreate))(unsigned int, struct IUnknown *);
31 typedef struct IWineD3DClipper * (__stdcall typeof(WineDirect3DCreateClipper))(struct IUnknown *);
32 typedef int (__stdcall typeof(ImeInquire))(struct _tagIMEINFO *, __typeof_wchar *, const __typeof_wchar *);
33 typedef int (__stdcall typeof(ImeConfigure))(void *, void *, unsigned int, void *);
34 typedef int (__stdcall typeof(ImeDestroy))(unsigned int);
35 typedef __typeof_longptr (__stdcall typeof(ImeEscape))(void *, unsigned int, void *);
36 typedef int (__stdcall typeof(ImeSelect))(void *, int);
37 typedef int (__stdcall typeof(ImeSetActiveContext))(void *, int);
38 typedef unsigned int (__stdcall typeof(ImeToAsciiEx))(unsigned int, unsigned int, unsigned char *, unsigned int *, unsigned int, void *);
39 typedef int (__stdcall typeof(NotifyIME))(void *, unsigned int, unsigned int, unsigned int);
40 typedef int (__stdcall typeof(ImeRegisterWord))(const __typeof_wchar *, unsigned int, const __typeof_wchar *);
41 typedef int (__stdcall typeof(ImeUnregisterWord))(const __typeof_wchar *, unsigned int, const __typeof_wchar *);
42 typedef unsigned int (__stdcall typeof(ImeGetRegisterWordStyle))(unsigned int, struct tagSTYLEBUFW *);
43 typedef unsigned int (__stdcall typeof(ImeEnumRegisterWord))(int (__stdcall *)(const __typeof_wchar *, unsigned int, const __typeof_wchar *, void *), const __typeof_wchar *, unsigned int, const __typeof_wchar *, void *);
44 typedef int (__stdcall typeof(ImeSetCompositionString))(void *, unsigned int, const void *, unsigned int, const void *, unsigned int);
45 typedef unsigned int (__stdcall typeof(ImeConversionList))(void *, const __typeof_wchar *, struct tagCANDIDATELIST *, unsigned int, unsigned int);
46 typedef int (__stdcall typeof(ImeProcessKey))(void *, unsigned int, __typeof_longptr, unsigned char *);
47 typedef unsigned int (__stdcall typeof(ImeGetRegisterWordStyle))(unsigned int, struct tagSTYLEBUFW *);
48 typedef unsigned int (__stdcall typeof(ImeGetImeMenuItems))(void *, unsigned int, unsigned int, struct tagIMEMENUITEMINFOW *, struct tagIMEMENUITEMINFOW *, unsigned int);
49 typedef struct _xmlDoc * (__cdecl typeof(xsltApplyStylesheet))(struct _xsltStylesheet *, struct _xmlDoc *, const char **);
50 typedef struct _xmlDoc * (__cdecl typeof(xsltApplyStylesheetUser))(struct _xsltStylesheet *, struct _xmlDoc *, const char **, const char *, struct _iobuf *, struct _xsltTransformContext *);
51 typedef struct _xsltTransformContext * (__cdecl typeof(xsltNewTransformContext))(struct _xsltStylesheet *, struct _xmlDoc *);
52 typedef void (__cdecl typeof(xsltFreeTransformContext))(struct _xsltTransformContext *);
53 typedef int (__cdecl typeof(xsltQuoteUserParams))(struct _xsltTransformContext *, const char **);
54 typedef int (__cdecl typeof(xsltSaveResultTo))(struct _xmlOutputBuffer *, struct _xmlDoc *, struct _xsltStylesheet *);
55 typedef struct _xsltStylesheet * (__cdecl typeof(xsltNextImport))(struct _xsltStylesheet *);
56 typedef void (__cdecl typeof(xsltCleanupGlobals))(void);
57 typedef void (__cdecl typeof(xsltFreeStylesheet))(struct _xsltStylesheet *);
58 typedef struct _xsltStylesheet * (__cdecl typeof(xsltParseStylesheetDoc))(struct _xmlDoc *);
59 typedef struct jpeg_error_mgr * (__cdecl typeof(jpeg_std_error))(struct jpeg_error_mgr *);
60 typedef void (__cdecl typeof(jpeg_CreateDecompress))(struct jpeg_decompress_struct *, int, __typeof_size);
61 typedef int (__cdecl typeof(jpeg_read_header))(struct jpeg_decompress_struct *, int);
62 typedef int (__cdecl typeof(jpeg_start_decompress))(struct jpeg_decompress_struct *);
63 typedef unsigned int (__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *, unsigned char **, unsigned int);
64 typedef int (__cdecl typeof(jpeg_finish_decompress))(struct jpeg_decompress_struct *);
65 typedef void (__cdecl typeof(jpeg_destroy_decompress))(struct jpeg_decompress_struct *);
66
67 #undef __typeof_intptr
68 #undef __typeof_longptr
69 #undef __typeof_wchar
70 #undef __typeof_size
71
72 /* EOF */
73