Module: wine
Branch: master
Commit: c65bfc062bfe1e2256a814ec7a0286214da04b0e
URL: https://gitlab.winehq.org/wine/wine/-/commit/c65bfc062bfe1e2256a814ec7a0286…
Author: Jacek Caban <jacek(a)codeweavers.com>
Date: Thu Dec 8 15:56:39 2022 +0100
winevulkan: Rename needs_host_type to needs_win32_type.
---
dlls/winevulkan/make_vulkan | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/dlls/winevulkan/make_vulkan b/dlls/winevulkan/make_vulkan
index 40ea2aa79d5..fb8aa1f8185 100755
--- a/dlls/winevulkan/make_vulkan
+++ b/dlls/winevulkan/make_vulkan
@@ -1260,8 +1260,8 @@ class VkVariable(object):
return (self.is_struct() or (self.is_union() and self.selector)) and self.struct.needs_alloc(conv, unwrap)
- def needs_host_type(self):
- return (self.is_struct() or (self.is_union() and self.selector)) and self.struct.needs_host_type()
+ def needs_win32_type(self):
+ return (self.is_struct() or (self.is_union() and self.selector)) and self.struct.needs_win32_type()
def get_conversions(self, unwrap, parent_const=False):
""" Get a list of conversions required for this parameter if any.
@@ -1315,7 +1315,7 @@ class VkVariable(object):
cast_type += "PTR32 *"
else:
cast_type += self.type
- if self.needs_host_type():
+ if self.needs_win32_type():
cast_type += "32"
if self.is_pointer():
@@ -1496,7 +1496,7 @@ class VkMember(VkVariable):
text += "struct "
text += self.type
- if conv and self.needs_host_type():
+ if conv and self.needs_win32_type():
text += "32"
if self.is_pointer():
@@ -1717,7 +1717,7 @@ class VkParam(VkVariable):
proto += self.type
name = self.name
- if conv and self.needs_host_type():
+ if conv and self.needs_win32_type():
proto += "32"
if is_member and self.needs_alignment():
@@ -2139,7 +2139,7 @@ class VkStruct(Sequence):
return False
- def needs_host_type(self):
+ def needs_win32_type(self):
# VkAllocationCallbacks never needs conversion
if self.name == "VkAllocationCallbacks":
return False
@@ -2151,7 +2151,7 @@ class VkStruct(Sequence):
return True
if m.needs_alignment():
return True
- if (m.is_struct() or m.is_union()) and m.struct.needs_host_type():
+ if (m.is_struct() or m.is_union()) and m.struct.needs_win32_type():
return True
def set_type_info(self, types):
@@ -2233,7 +2233,7 @@ class StructConversionFunction(object):
needs_alloc = self.direction != Direction.OUTPUT and self.operand.needs_alloc(self.conv, self.unwrap)
win_type = self.type
- if self.conv and self.operand.needs_host_type():
+ if self.conv and self.operand.needs_win32_type():
win_type += "32"
if self.direction == Direction.OUTPUT and self.const:
win_type = "const " + win_type
@@ -2323,7 +2323,7 @@ class StructConversionFunction(object):
continue
stype = next(x for x in ext.members if x.name == "sType").values
- win_type = ext.name + "32" if self.conv and ext.needs_host_type() else ext.name
+ win_type = ext.name + "32" if self.conv and ext.needs_win32_type() else ext.name
if self.direction == Direction.INPUT:
in_type = "const " + win_type
out_type = ext.name
@@ -2421,7 +2421,7 @@ class ArrayConversionFunction(object):
win_type = self.type
if self.conv:
- if self.array.needs_host_type():
+ if self.array.needs_win32_type():
win_type += "32"
elif self.array.is_handle() and self.array.handle.is_dispatchable():
win_type = "PTR32"
@@ -2545,7 +2545,7 @@ class VkGenerator(object):
# Build a list conversion functions for struct conversion.
self.conversions = []
- self.host_structs = []
+ self.win32_structs = []
for func in self.registry.funcs.values():
if not func.needs_exposing():
continue
@@ -2560,18 +2560,18 @@ class VkGenerator(object):
continue
for e in conv.operand.struct_extensions:
- if not e.required or not e.needs_host_type():
+ if not e.required or not e.needs_win32_type():
continue
- if not any(s.name == e.name for s in self.host_structs):
- self.host_structs.append(e)
+ if not any(s.name == e.name for s in self.win32_structs):
+ self.win32_structs.append(e)
- if not conv.operand.needs_host_type():
+ if not conv.operand.needs_win32_type():
continue
# Structs can be used in different ways by different conversions
# e.g. array vs non-array. Just make sure we pull in each struct once.
- if not any(s.name == conv.operand.name for s in self.host_structs):
- self.host_structs.append(conv.operand)
+ if not any(s.name == conv.operand.name for s in self.win32_structs):
+ self.win32_structs.append(conv.operand)
def _generate_copyright(self, f, spec_file=False):
f.write("# " if spec_file else "/* ")
@@ -2598,7 +2598,7 @@ class VkGenerator(object):
f.write("WINE_DEFAULT_DEBUG_CHANNEL(vulkan);\n\n")
- for struct in self.host_structs:
+ for struct in self.win32_structs:
f.write(struct.definition(conv=True, align=True))
f.write("\n")
Module: wine
Branch: master
Commit: fa533f11e100a4380470ccffb6fa496b82d834ca
URL: https://gitlab.winehq.org/wine/wine/-/commit/fa533f11e100a4380470ccffb6fa49…
Author: Hans Leidekker <hans(a)codeweavers.com>
Date: Thu Dec 8 13:57:50 2022 +0100
wofutil: Stub WofShouldCompressBinaries().
---
dlls/wofutil/Makefile.in | 3 +++
dlls/wofutil/main.c | 30 ++++++++++++++++++++++++++++++
dlls/wofutil/wofutil.spec | 2 +-
include/Makefile.in | 1 +
include/wofapi.h | 19 +++++++++++++++++++
5 files changed, 54 insertions(+), 1 deletion(-)
diff --git a/dlls/wofutil/Makefile.in b/dlls/wofutil/Makefile.in
index 387a4264349..479dea651bc 100644
--- a/dlls/wofutil/Makefile.in
+++ b/dlls/wofutil/Makefile.in
@@ -1 +1,4 @@
MODULE = wofutil.dll
+
+C_SRCS = \
+ main.c
diff --git a/dlls/wofutil/main.c b/dlls/wofutil/main.c
new file mode 100644
index 00000000000..1866aed7c69
--- /dev/null
+++ b/dlls/wofutil/main.c
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2022 Hans Leidekker for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include <stdarg.h>
+#include "windef.h"
+#include "wofapi.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(wofutil);
+
+BOOL WINAPI WofShouldCompressBinaries( const WCHAR *volume, ULONG *alg )
+{
+ FIXME( "%s, %p\n", debugstr_w(volume), alg );
+ return FALSE;
+}
diff --git a/dlls/wofutil/wofutil.spec b/dlls/wofutil/wofutil.spec
index 60168790731..73f11c4f885 100644
--- a/dlls/wofutil/wofutil.spec
+++ b/dlls/wofutil/wofutil.spec
@@ -3,7 +3,7 @@
@ stub WofGetDriverVersion
@ stub WofIsExternalFile
@ stub WofSetFileDataLocation
-@ stub WofShouldCompressBinaries
+@ stdcall WofShouldCompressBinaries(wstr ptr)
@ stub WofWimAddEntry
@ stub WofWimEnumFiles
@ stub WofWimRemoveEntry
diff --git a/include/Makefile.in b/include/Makefile.in
index d0ae4b4667e..23a4265a437 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -917,6 +917,7 @@ SOURCES = \
wmsdkidl.idl \
wmsecure.idl \
wnaspi32.h \
+ wofapi.h \
wownt16.h \
wownt32.h \
wpcapi.idl \
diff --git a/include/wofapi.h b/include/wofapi.h
new file mode 100644
index 00000000000..8d678dc2d08
--- /dev/null
+++ b/include/wofapi.h
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2022 Hans Leidekker for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+BOOL WINAPI WofShouldCompressBinaries(const WCHAR *, ULONG *);