[PATCH] include: Allow making Wine Server requests from C++ code

Mahdi Tayarani tayarani at google.com
Mon Jun 6 09:59:33 CDT 2022

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.

The proposed changes are valid C and C++ syntax so applying them allows us
to include the header file without modification.

On Sun, Jun 5, 2022 at 1:42 PM Stefan Dösinger <stefandoesinger at gmail.com>

> > Am 03.06.2022 um 19:15 schrieb Mahdi Tayarani <tayarani at google.com>:
> >
> > Using SERVER_START_REQ/SERVER_END_REQ in C++ code calls helper methods
> > which need an explicit cast from a void* to __server_request_info*.
> Why do you need this? include/wine/server.h (and pretty much everything in
> include/wine/) is a private header that should not be used by external code
> (e.g. programs linking to winelib)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20220606/1bb73549/attachment.htm>

More information about the wine-devel mailing list