Commit 084fa63e authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

widl: Only generate Proxy Stubs when functions have the call_as attribute.

parent 51bd8843
...@@ -45,6 +45,9 @@ typedef struct BitmapTestSrc { ...@@ -45,6 +45,9 @@ typedef struct BitmapTestSrc {
const bitmap_data *data; const bitmap_data *data;
} BitmapTestSrc; } BitmapTestSrc;
extern HRESULT STDMETHODCALLTYPE IWICBitmapFrameEncode_WriteSource_Proxy(IWICBitmapFrameEncode* This,
IWICBitmapSource *pIBitmapSource, WICRect *prc);
static BOOL near_equal(float a, float b) static BOOL near_equal(float a, float b)
{ {
return fabsf(a - b) < 0.001; return fabsf(a - b) < 0.001;
......
...@@ -46,6 +46,16 @@ interface IUnknown ...@@ -46,6 +46,16 @@ interface IUnknown
ULONG Release(); ULONG Release();
} }
cpp_quote("HRESULT STDMETHODCALLTYPE IUnknown_QueryInterface_Proxy(IUnknown* This, REFIID riid, void **ppvObject);")
cpp_quote("void __RPC_STUB IUnknown_QueryInterface_Stub(IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer,")
cpp_quote(" PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase);")
cpp_quote("ULONG STDMETHODCALLTYPE IUnknown_AddRef_Proxy(IUnknown* This);")
cpp_quote("void __RPC_STUB IUnknown_AddRef_Stub(IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer,")
cpp_quote(" PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase);")
cpp_quote("ULONG STDMETHODCALLTYPE IUnknown_Release_Proxy(IUnknown* This);")
cpp_quote("void __RPC_STUB IUnknown_Release_Stub(IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer,")
cpp_quote(" PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase);")
cpp_quote("#ifdef SAVE_WIDL_C_INLINE_WRAPPERS") cpp_quote("#ifdef SAVE_WIDL_C_INLINE_WRAPPERS")
cpp_quote("#define WIDL_C_INLINE_WRAPPERS") cpp_quote("#define WIDL_C_INLINE_WRAPPERS")
cpp_quote("#endif") cpp_quote("#endif")
......
...@@ -1172,7 +1172,7 @@ static void write_method_proto(FILE *header, const type_t *iface) ...@@ -1172,7 +1172,7 @@ static void write_method_proto(FILE *header, const type_t *iface)
{ {
const var_t *func = stmt->u.var; const var_t *func = stmt->u.var;
if (!is_local(func->attrs)) { if (is_callas(func->attrs)) {
const char *callconv = get_attrp(func->type->attrs, ATTR_CALLCONV); const char *callconv = get_attrp(func->type->attrs, ATTR_CALLCONV);
if (!callconv) callconv = "STDMETHODCALLTYPE"; if (!callconv) callconv = "STDMETHODCALLTYPE";
/* proxy prototype */ /* proxy prototype */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment