On Thu, 8 Nov 2001, Francois Gouget wrote:
MS has two separate structures, one in winbase.h and one in winsock(2).h. So from a Winelib point of view we should have two separate structures too.
That's why I changed that. I don't think it causes actual problems, all elements can easily be casted into each other.
Thinking about my proposition to introduce a union in async_private, it may not be such a good idea after all. It would only be necessary if we were relying on the size of an async_private struct somewhere (e.g. using arrays of async_private's). This seems not to be the case, and thus we can take a similar approach as is taken with sock_addr structs. More reasonable than the union would be a header field indicating the type of the asycnc_private struct in question, but they can also be identified through the function pointers they use.
Martin