From 1bbbe92cd203d39f0aa0da80d5bd41ae641c3e5c Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 19 May 2016 21:52:44 +0200 Subject: GCAdapter: protect some more functions Reset() and Setup() are not used outside of this namespace --- Source/Core/InputCommon/GCAdapter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/Core/InputCommon/GCAdapter.cpp') diff --git a/Source/Core/InputCommon/GCAdapter.cpp b/Source/Core/InputCommon/GCAdapter.cpp index 4728a9f49f..adc0445697 100644 --- a/Source/Core/InputCommon/GCAdapter.cpp +++ b/Source/Core/InputCommon/GCAdapter.cpp @@ -23,6 +23,8 @@ namespace GCAdapter static bool CheckDeviceAccess(libusb_device* device); static void AddGCAdapter(libusb_device* device); static void ResetRumbleLockNeeded(); +static void Reset(); +static void Setup(); static bool s_detected = false; static libusb_device_handle* s_handle = nullptr; @@ -183,7 +185,7 @@ void StopScanThread() } } -void Setup() +static void Setup() { libusb_device** list; ssize_t cnt = libusb_get_device_list(s_libusb_context, &list); @@ -333,7 +335,7 @@ void Shutdown() s_libusb_driver_not_supported = false; } -void Reset() +static void Reset() { std::unique_lock lock(s_init_mutex, std::defer_lock); if (!lock.try_lock()) -- cgit v1.2.3