vulkan: gl: change symbols to static

Change window_proc and subclass_proc to static to avoid symbols
duplication.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4246>
This commit is contained in:
Stéphane Cerveau 2022-12-07 14:30:23 +00:00 committed by GStreamer Marge Bot
parent e88e8527ed
commit 23661f0446
2 changed files with 8 additions and 8 deletions

View File

@ -26,9 +26,9 @@
#include "gstvkwindow_win32.h" #include "gstvkwindow_win32.h"
LRESULT CALLBACK window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, static LRESULT CALLBACK window_proc (HWND hWnd, UINT uMsg, WPARAM wParam,
LPARAM lParam); LPARAM lParam);
LRESULT FAR PASCAL sub_class_proc (HWND hWnd, UINT uMsg, WPARAM wParam, static LRESULT FAR PASCAL sub_class_proc (HWND hWnd, UINT uMsg, WPARAM wParam,
LPARAM lParam); LPARAM lParam);
enum enum
@ -488,7 +488,7 @@ gst_vulkan_window_win32_show (GstVulkanWindowWin32 * window)
/* PRIVATE */ /* PRIVATE */
LRESULT CALLBACK static LRESULT CALLBACK
window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
GstVulkanWindowWin32 *window_win32; GstVulkanWindowWin32 *window_win32;
@ -553,7 +553,7 @@ window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return ret; return ret;
} }
LRESULT FAR PASCAL static LRESULT FAR PASCAL
sub_class_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) sub_class_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
WNDPROC window_parent_proc = GetProp (hWnd, "vulkan_window_parent_proc"); WNDPROC window_parent_proc = GetProp (hWnd, "vulkan_window_parent_proc");

View File

@ -25,9 +25,9 @@
#include "gstglwindow_win32.h" #include "gstglwindow_win32.h"
LRESULT CALLBACK window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, static LRESULT CALLBACK window_proc (HWND hWnd, UINT uMsg, WPARAM wParam,
LPARAM lParam); LPARAM lParam);
LRESULT FAR PASCAL sub_class_proc (HWND hWnd, UINT uMsg, WPARAM wParam, static LRESULT FAR PASCAL sub_class_proc (HWND hWnd, UINT uMsg, WPARAM wParam,
LPARAM lParam); LPARAM lParam);
enum enum
@ -534,7 +534,7 @@ gst_gl_window_win32_handle_mouse_event (GstGLWindow * window, UINT uMsg,
/* PRIVATE */ /* PRIVATE */
LRESULT CALLBACK static LRESULT CALLBACK
window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
GstGLWindowWin32 *window_win32; GstGLWindowWin32 *window_win32;
@ -644,7 +644,7 @@ window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return ret; return ret;
} }
LRESULT FAR PASCAL static LRESULT FAR PASCAL
sub_class_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) sub_class_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
WNDPROC window_parent_proc = GetProp (hWnd, "gl_window_parent_proc"); WNDPROC window_parent_proc = GetProp (hWnd, "gl_window_parent_proc");