From: Mahdi Tayarani Subject: Re: [PATCH] include: Allow making Wine Server requests from C++ code Message-Id: Date: Mon, 6 Jun 2022 12:12:44 -0400 In-Reply-To: References: <20220603161556.3773472-1-tayarani@google.com> <703FD65F-01F0-414A-A4ED-7D096D0438C9@gmail.com> We have an input processing system which requires us to directly send input update information to the Wine Server. The existing helper methods don't provide what we need. Can you please elaborate why it will be a tough sell? The change provides no sort of functional or behavioural change. It's just making the cast that was already implicitly happening, explicit. On Mon, Jun 6, 2022 at 11:51 AM Alex Henrie wrote: > On Mon, Jun 6, 2022 at 8:59 AM Mahdi Tayarani wrote: > > > > We need to include "include/wine/server.h" as it contains the definition > for the SERVER_START_REQ/SERVER_END_REQ macros. Our code (written in C++) > needs to make a Wine Server call so we have to include that header. But by > doing so we run into compilation issues. > > I suspect that this is going to be a tough sell. Why are you trying to > call the Wineserver directly, instead of calling the Windows function > that calls the Wineserver? > > -Alex >
We have an input processing system which requires us to directly send input update information to the Wine Server. The existing helper methods don't provide what we need.

Can you please elaborate why it will be a tough sell? The change provides no sort of functional or behavioural change. It's just making the cast that was already implicitly happening, explicit.

On Mon, Jun 6, 2022 at 11:51 AM Alex Henrie <alexhenrie24@gmail.com> wrote:
On Mon, Jun 6, 2022 at 8:59 AM Mahdi Tayarani <tayarani@google.com> wrote:
>
> We need to include "include/wine/server.h" as it contains the definition for the SERVER_START_REQ/SERVER_END_REQ macros. Our code (written in C++) needs to make a Wine Server call so we have to include that header. But by doing so we run into compilation issues.

I suspect that this is going to be a tough sell. Why are you trying to
call the Wineserver directly, instead of calling the Windows function
that calls the Wineserver?

-Alex