<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt">Hi Nikolay</span></font>,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The widl does include the extern "C" block which I didn't realise.  <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Alistair.<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> wine-devel <wine-devel-bounces@winehq.org> on behalf of Nikolay Sivov <nsivov@codeweavers.com><br>
<b>Sent:</b> Tuesday, 16 April 2019 1:19 AM<br>
<b>To:</b> wine-devel@winehq.org<br>
<b>Subject:</b> Re: [PATCH] include: Add IMFPMediaPlayer definition.</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On 4/15/19 1:20 PM, Alistair Leslie-Hughes wrote:<br>
<br>
> Hi Nikolay,<br>
><br>
> On 15/4/19 3:35 pm, Nikolay Sivov wrote:<br>
>> +cpp_quote("HRESULT WINAPI MFPCreateMediaPlayer(const WCHAR *url, BOOL start_playback, MFP_CREATION_OPTIONS options, ")<br>
>> +cpp_quote("        IMFPMediaPlayerCallback *callback, HWND hwnd, IMFPMediaPlayer **player);")<br>
> This need to have extern "C" around the function.<br>
<br>
Like Jacek already said, widl will wrap everything in extern "C" block. <br>
That also reminded me, was <br>
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.winehq.org%2Fgit%2Fwine.git%2Fcommit%2F0501ad920afd208d85cf807c9fcec1d4e8245164really&amp;data=02%7C01%7C%7Cce0ed24c599845ebce8f08d6c1b5e7b4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636909384348864453&amp;sdata=Ec%2BwZvzOqFyUd%2F4qUS%2BSoghK08FEY4z4ZwdZRp2c8jM%3D&amp;reserved=0">https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.winehq.org%2Fgit%2Fwine.git%2Fcommit%2F0501ad920afd208d85cf807c9fcec1d4e8245164really&amp;data=02%7C01%7C%7Cce0ed24c599845ebce8f08d6c1b5e7b4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636909384348864453&amp;sdata=Ec%2BwZvzOqFyUd%2F4qUS%2BSoghK08FEY4z4ZwdZRp2c8jM%3D&amp;reserved=0</a>
<br>
necessary?<br>
<br>
Now generated header has nested extern "C".<br>
<br>
><br>
> Regards<br>
><br>
> Alistair<br>
><br>
><br>
<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>