On 21.08.21 05:00, Esme Povirk (she/they) wrote:
For windowscodecs we could use win32 builds (PE or static) for the dependencies. The interface was designed to make it easy to switch to this, we just need to resolve the question of how we're managing those dependencies.
I don't know if there are any other dlls that need callbacks from a unix library that can't be built for win32.
winevulkan, which currently uses __wine_init_unix_lib, uses direct callbacks to implement VK_EXT_debug_utils/VK_EXT_debug_report.
On Fri, Aug 20, 2021 at 11:13 AM Alexandre Julliard julliard@winehq.org wrote:
"Esme Povirk (she/they)" esme@codeweavers.com writes:
On Fri, Aug 20, 2021 at 9:03 AM Alexandre Julliard julliard@winehq.org wrote:
Yes, exactly. __wine_init_unix_lib is an intermediate step that will go away eventually. New code should ideally be using __wine_unix_call from the start, if possible.
Does this mean that we shouldn't have calls from unixlibs back into PE code?
Yes, direct callbacks cannot be supported. We may need to consider adding an extension to the user32 callback mechanism for this.
-- Alexandre Julliard julliard@winehq.org