Set default visiblity of functions to hidden
authorDennis Tsiang <dennis.tsiang@arm.com>
Wed, 3 Nov 2021 11:25:48 +0000 (11:25 +0000)
committerRosen Zhelev <rosen.zhelev@arm.com>
Mon, 8 Nov 2021 13:42:20 +0000 (13:42 +0000)
commit080d5d2bf7a043eedd7be1963fafb10308d68dc1
tree6597356f25c8f03edeaeee95c3a3f1bc37aaaf75
parent454ce6c2679df7e95bb3a219c500e86d46db4dda
Set default visiblity of functions to hidden

Reduce the number of functions that are exported by the layer. This
helps resolve dynamic linking issues where multiple functions are named
the same in different shared libraries. Also add function specifiers and
calling conventions to all extern "C" functions.

Change-Id: I07b33ff8d066e33c5dbdf0cbc13aa7835a78220b
Signed-off-by: Dennis Tsiang <dennis.tsiang@arm.com>
16 files changed:
CMakeLists.txt
layer/VkLayer_window_system_integration.json
layer/layer.cpp
layer/surface_api.cpp
layer/surface_api.hpp
layer/swapchain_api.cpp
layer/swapchain_api.hpp
util/custom_allocator.cpp
util/macros.hpp [new file with mode: 0644]
wsi/headless/surface_properties.cpp
wsi/wayland/surface.cpp
wsi/wayland/surface.hpp
wsi/wayland/surface_properties.cpp
wsi/wayland/swapchain.cpp
wsi/wayland/wl_helpers.cpp
wsi/wayland/wl_helpers.hpp