From f5b3e466a8b76c48bba08a7ecf5945f306cf9d2a Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Sat, 13 Aug 2022 21:28:41 -0400 Subject: [PATCH] Prep for PS5Driver --- src/Refresh.c | 5 +++++ src/Refresh_Driver.h | 13 ++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/Refresh.c b/src/Refresh.c index e12c387..3261f4a 100644 --- a/src/Refresh.c +++ b/src/Refresh.c @@ -34,7 +34,12 @@ /* Drivers */ static const Refresh_Driver *drivers[] = { +#ifdef REFRESH_DRIVER_VULKAN &VulkanDriver, +#endif +#ifdef REFRESH_DRIVER_PS5 + &PS5Driver, +#endif NULL }; diff --git a/src/Refresh_Driver.h b/src/Refresh_Driver.h index 56d8ec6..a98e60a 100644 --- a/src/Refresh_Driver.h +++ b/src/Refresh_Driver.h @@ -36,9 +36,15 @@ /* Logging */ -extern void Refresh_LogInfo(const char *fmt, ...); -extern void Refresh_LogWarn(const char *fmt, ...); -extern void Refresh_LogError(const char *fmt, ...); +#ifdef __cplusplus +extern "C" { +#endif +void Refresh_LogInfo(const char *fmt, ...); +void Refresh_LogWarn(const char *fmt, ...); +void Refresh_LogError(const char *fmt, ...); +#ifdef __cplusplus +} +#endif /* Internal Helper Utilities */ @@ -525,6 +531,7 @@ typedef struct Refresh_Driver } Refresh_Driver; extern Refresh_Driver VulkanDriver; +extern Refresh_Driver PS5Driver; #endif /* REFRESH_DRIVER_H */ -- 2.25.1