[PATCH] include: Add IMFPMediaPlayer definition.

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Mon Apr 15 17:40:24 CDT 2019


Hi Nikolay,

The widl does include the extern "C" block which I didn't realise.

Regards
Alistair.

________________________________
From: wine-devel <wine-devel-bounces at winehq.org> on behalf of Nikolay Sivov <nsivov at codeweavers.com>
Sent: Tuesday, 16 April 2019 1:19 AM
To: wine-devel at winehq.org
Subject: Re: [PATCH] include: Add IMFPMediaPlayer definition.

On 4/15/19 1:20 PM, Alistair Leslie-Hughes wrote:

> Hi Nikolay,
>
> On 15/4/19 3:35 pm, Nikolay Sivov wrote:
>> +cpp_quote("HRESULT WINAPI MFPCreateMediaPlayer(const WCHAR *url, BOOL start_playback, MFP_CREATION_OPTIONS options, ")
>> +cpp_quote("        IMFPMediaPlayerCallback *callback, HWND hwnd, IMFPMediaPlayer **player);")
> This need to have extern "C" around the function.

Like Jacek already said, widl will wrap everything in extern "C" block.
That also reminded me, was
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.winehq.org%2Fgit%2Fwine.git%2Fcommit%2F0501ad920afd208d85cf807c9fcec1d4e8245164really&data=02%7C01%7C%7Cce0ed24c599845ebce8f08d6c1b5e7b4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636909384348864453&sdata=Ec%2BwZvzOqFyUd%2F4qUS%2BSoghK08FEY4z4ZwdZRp2c8jM%3D&reserved=0
necessary?

Now generated header has nested extern "C".

>
> Regards
>
> Alistair
>
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20190415/feadc4f3/attachment.html>


More information about the wine-devel mailing list