Commit 0b63da6a authored by Alexandre Julliard's avatar Alexandre Julliard

winevulkan: Remove DECLSPEC_HIDDEN usage.

parent 6ecd967d
...@@ -733,13 +733,12 @@ class VkFunction(object): ...@@ -733,13 +733,12 @@ class VkFunction(object):
pfn += ")" pfn += ")"
return pfn return pfn
def prototype(self, call_conv=None, prefix=None, postfix=None, is_thunk=False): def prototype(self, call_conv=None, prefix=None, is_thunk=False):
""" Generate prototype for given function. """ Generate prototype for given function.
Args: Args:
call_conv (str, optional): calling convention e.g. WINAPI call_conv (str, optional): calling convention e.g. WINAPI
prefix (str, optional): prefix to append prior to function name e.g. vkFoo -> wine_vkFoo prefix (str, optional): prefix to append prior to function name e.g. vkFoo -> wine_vkFoo
postfix (str, optional): text to append after function name but prior to semicolon e.g. DECLSPEC_HIDDEN
""" """
proto = "{0}".format(self.type) proto = "{0}".format(self.type)
...@@ -758,11 +757,7 @@ class VkFunction(object): ...@@ -758,11 +757,7 @@ class VkFunction(object):
if is_thunk and self.extra_param: if is_thunk and self.extra_param:
proto += ", void *" + self.extra_param proto += ", void *" + self.extra_param
if postfix is not None:
proto += ") {0}".format(postfix)
else:
proto += ")" proto += ")"
return proto return proto
def loader_body(self): def loader_body(self):
...@@ -2827,7 +2822,7 @@ class VkGenerator(object): ...@@ -2827,7 +2822,7 @@ class VkGenerator(object):
if not vk_func.needs_private_thunk(): if not vk_func.needs_private_thunk():
continue continue
f.write("{0};\n".format(vk_func.prototype(prefix=prefix, postfix="DECLSPEC_HIDDEN", is_thunk=True))) f.write("{0};\n".format(vk_func.prototype(prefix=prefix, is_thunk=True)))
f.write("\n") f.write("\n")
f.write("/* For use by vkDevice and children */\n") f.write("/* For use by vkDevice and children */\n")
......
...@@ -103,9 +103,9 @@ struct vulkan_func ...@@ -103,9 +103,9 @@ struct vulkan_func
void *func; void *func;
}; };
void *wine_vk_get_device_proc_addr(const char *name) DECLSPEC_HIDDEN; void *wine_vk_get_device_proc_addr(const char *name);
void *wine_vk_get_phys_dev_proc_addr(const char *name) DECLSPEC_HIDDEN; void *wine_vk_get_phys_dev_proc_addr(const char *name);
void *wine_vk_get_instance_proc_addr(const char *name) DECLSPEC_HIDDEN; void *wine_vk_get_instance_proc_addr(const char *name);
/* debug callbacks params */ /* debug callbacks params */
......
...@@ -237,17 +237,17 @@ static inline VkSurfaceKHR wine_surface_to_handle(struct wine_surface *surface) ...@@ -237,17 +237,17 @@ static inline VkSurfaceKHR wine_surface_to_handle(struct wine_surface *surface)
return (VkSurfaceKHR)(uintptr_t)surface; return (VkSurfaceKHR)(uintptr_t)surface;
} }
BOOL wine_vk_device_extension_supported(const char *name) DECLSPEC_HIDDEN; BOOL wine_vk_device_extension_supported(const char *name);
BOOL wine_vk_instance_extension_supported(const char *name) DECLSPEC_HIDDEN; BOOL wine_vk_instance_extension_supported(const char *name);
BOOL wine_vk_is_type_wrapped(VkObjectType type) DECLSPEC_HIDDEN; BOOL wine_vk_is_type_wrapped(VkObjectType type);
NTSTATUS init_vulkan(void *args) DECLSPEC_HIDDEN; NTSTATUS init_vulkan(void *args);
NTSTATUS vk_is_available_instance_function(void *arg) DECLSPEC_HIDDEN; NTSTATUS vk_is_available_instance_function(void *arg);
NTSTATUS vk_is_available_device_function(void *arg) DECLSPEC_HIDDEN; NTSTATUS vk_is_available_device_function(void *arg);
NTSTATUS vk_is_available_instance_function32(void *arg) DECLSPEC_HIDDEN; NTSTATUS vk_is_available_instance_function32(void *arg);
NTSTATUS vk_is_available_device_function32(void *arg) DECLSPEC_HIDDEN; NTSTATUS vk_is_available_device_function32(void *arg);
struct conversion_context struct conversion_context
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment