1a84c5fedac16bf6f76817077c9d7ec4bd798db5
[reactos.git] / sdk / 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 struct _xmlXPathParserContext;
30 struct _xmlDict;
31 enum xsltLoadType;
32
33 typedef struct IWineD3D * (__stdcall typeof(WineDirect3DCreate))(unsigned int, struct IUnknown *);
34 typedef struct IWineD3DClipper * (__stdcall typeof(WineDirect3DCreateClipper))(struct IUnknown *);
35 typedef int (__stdcall typeof(ImeInquire))(struct _tagIMEINFO *, __typeof_wchar *, const __typeof_wchar *);
36 typedef int (__stdcall typeof(ImeConfigure))(void *, void *, unsigned int, void *);
37 typedef int (__stdcall typeof(ImeDestroy))(unsigned int);
38 typedef __typeof_longptr (__stdcall typeof(ImeEscape))(void *, unsigned int, void *);
39 typedef int (__stdcall typeof(ImeSelect))(void *, int);
40 typedef int (__stdcall typeof(ImeSetActiveContext))(void *, int);
41 typedef unsigned int (__stdcall typeof(ImeToAsciiEx))(unsigned int, unsigned int, unsigned char *, unsigned int *, unsigned int, void *);
42 typedef int (__stdcall typeof(NotifyIME))(void *, unsigned int, unsigned int, unsigned int);
43 typedef int (__stdcall typeof(ImeRegisterWord))(const __typeof_wchar *, unsigned int, const __typeof_wchar *);
44 typedef int (__stdcall typeof(ImeUnregisterWord))(const __typeof_wchar *, unsigned int, const __typeof_wchar *);
45 typedef unsigned int (__stdcall typeof(ImeGetRegisterWordStyle))(unsigned int, struct tagSTYLEBUFW *);
46 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 *);
47 typedef int (__stdcall typeof(ImeSetCompositionString))(void *, unsigned int, const void *, unsigned int, const void *, unsigned int);
48 typedef unsigned int (__stdcall typeof(ImeConversionList))(void *, const __typeof_wchar *, struct tagCANDIDATELIST *, unsigned int, unsigned int);
49 typedef int (__stdcall typeof(ImeProcessKey))(void *, unsigned int, __typeof_longptr, unsigned char *);
50 typedef unsigned int (__stdcall typeof(ImeGetRegisterWordStyle))(unsigned int, struct tagSTYLEBUFW *);
51 typedef unsigned int (__stdcall typeof(ImeGetImeMenuItems))(void *, unsigned int, unsigned int, struct tagIMEMENUITEMINFOW *, struct tagIMEMENUITEMINFOW *, unsigned int);
52 typedef struct _xmlDoc * (__cdecl typeof(xsltApplyStylesheet))(struct _xsltStylesheet *, struct _xmlDoc *, const char **);
53 typedef struct _xmlDoc * (__cdecl typeof(xsltApplyStylesheetUser))(struct _xsltStylesheet *, struct _xmlDoc *, const char **, const char *, struct _iobuf *, struct _xsltTransformContext *);
54 typedef struct _xsltTransformContext * (__cdecl typeof(xsltNewTransformContext))(struct _xsltStylesheet *, struct _xmlDoc *);
55 typedef void (__cdecl typeof(xsltFreeTransformContext))(struct _xsltTransformContext *);
56 typedef int (__cdecl typeof(xsltQuoteUserParams))(struct _xsltTransformContext *, const char **);
57 typedef int (__cdecl typeof(xsltSaveResultTo))(struct _xmlOutputBuffer *, struct _xmlDoc *, struct _xsltStylesheet *);
58 typedef struct _xsltStylesheet * (__cdecl typeof(xsltNextImport))(struct _xsltStylesheet *);
59 typedef void (__cdecl typeof(xsltCleanupGlobals))(void);
60 typedef void (__cdecl typeof(xsltFreeStylesheet))(struct _xsltStylesheet *);
61 typedef struct _xsltStylesheet * (__cdecl typeof(xsltParseStylesheetDoc))(struct _xmlDoc *);
62 typedef void (__cdecl typeof(xsltFunctionNodeSet))(struct _xmlXPathParserContext *, int);
63 typedef void (__cdecl typeof(xmlXPathFunction))(struct _xmlXPathParserContext *, int);
64 typedef int (__cdecl typeof(xsltRegisterExtModuleFunction))(const unsigned char *, const unsigned char *, typeof(xmlXPathFunction));
65 typedef struct _xmlDoc * (__cdecl typeof(xsltDocLoaderFunc))(const unsigned char *, struct _xmlDict *, int, void *, enum xsltLoadType);
66 typedef void (__cdecl typeof(xsltSetLoaderFunc))(typeof(xsltDocLoaderFunc));
67 typedef struct jpeg_error_mgr * (__cdecl typeof(jpeg_std_error))(struct jpeg_error_mgr *);
68 typedef void (__cdecl typeof(jpeg_CreateDecompress))(struct jpeg_decompress_struct *, int, __typeof_size);
69 typedef int (__cdecl typeof(jpeg_read_header))(struct jpeg_decompress_struct *, int);
70 typedef int (__cdecl typeof(jpeg_start_decompress))(struct jpeg_decompress_struct *);
71 typedef unsigned int (__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *, unsigned char **, unsigned int);
72 typedef int (__cdecl typeof(jpeg_finish_decompress))(struct jpeg_decompress_struct *);
73 typedef void (__cdecl typeof(jpeg_destroy_decompress))(struct jpeg_decompress_struct *);
74
75 #undef __typeof_intptr
76 #undef __typeof_longptr
77 #undef __typeof_wchar
78 #undef __typeof_size
79
80 /* EOF */
81