From 746670ea43779d439a940a2ce46d6050cfaa2929 Mon Sep 17 00:00:00 2001 From: Jeroen Date: Tue, 3 Jul 2018 14:02:52 +0200 Subject: [PATCH] Rename wooting-rgb-control to wooting-rgb-sdk --- ...ooting-rgb-control.c => wooting-rgb-sdk.c} | 2 +- ...ooting-rgb-control.h => wooting-rgb-sdk.h} | 24 +++++++++---------- ...ng-rgb-control.sln => wooting-rgb-sdk.sln} | 9 ++++--- ...ontrol.vcxproj => wooting-rgb-sdk.vcxproj} | 13 +++++----- 4 files changed, 26 insertions(+), 22 deletions(-) rename src/{wooting-rgb-control.c => wooting-rgb-sdk.c} (99%) mode change 100755 => 100644 rename src/{wooting-rgb-control.h => wooting-rgb-sdk.h} (81%) rename windows/{wooting-rgb-control.sln => wooting-rgb-sdk.sln} (81%) rename windows/{wooting-rgb-control.vcxproj => wooting-rgb-sdk.vcxproj} (94%) diff --git a/src/wooting-rgb-control.c b/src/wooting-rgb-sdk.c old mode 100755 new mode 100644 similarity index 99% rename from src/wooting-rgb-control.c rename to src/wooting-rgb-sdk.c index 83aedba..df7b329 --- a/src/wooting-rgb-control.c +++ b/src/wooting-rgb-sdk.c @@ -1,7 +1,7 @@ #include "stdbool.h" #include "stdint.h" #include "wooting-usb.h" -#include "wooting-rgb-control.h" +#include "wooting-rgb-sdk.h" #define NOLED 255 #define LED_LEFT_SHIFT_ANSI 9 diff --git a/src/wooting-rgb-control.h b/src/wooting-rgb-sdk.h similarity index 81% rename from src/wooting-rgb-control.h rename to src/wooting-rgb-sdk.h index dba78df..5e04146 100644 --- a/src/wooting-rgb-control.h +++ b/src/wooting-rgb-sdk.h @@ -1,9 +1,9 @@ #pragma once -#ifdef WOOTINGRGBCONTROL_EXPORTS -#define WOOTINGRGBCONTROL_API __declspec(dllexport) +#ifdef WOOTINGRGBSDK_EXPORTS +#define WOOTINGRGBSDK_API __declspec(dllexport) #else -#define WOOTINGRGBCONTROL_API __declspec(dllimport) +#define WOOTINGRGBSDK_API __declspec(dllimport) #endif #include "stdint.h" @@ -25,7 +25,7 @@ It is recommended to poll this function at the start of your application and aft @returns This function returns true (1) if keyboard is found. */ -WOOTINGRGBCONTROL_API bool wooting_rgb_kbd_connected(void); +WOOTINGRGBSDK_API bool wooting_rgb_kbd_connected(void); /** @brief Set callback for when a keyboard disconnects. @@ -37,7 +37,7 @@ The callback will be called when a Wooting keyboard disconnects. This will trigg @returns None. */ -WOOTINGRGBCONTROL_API void wooting_rgb_set_disconnected_cb(void_cb cb); +WOOTINGRGBSDK_API void wooting_rgb_set_disconnected_cb(void_cb cb); /** @brief Reset all colors on keyboard to the original colors. @@ -49,7 +49,7 @@ should be called when you close the application. @returns None. */ -WOOTINGRGBCONTROL_API bool wooting_rgb_reset(void); +WOOTINGRGBSDK_API bool wooting_rgb_reset(void); /** @brief Directly set and update 1 key on the keyboard. @@ -67,7 +67,7 @@ Use this function for simple applifications, like a notification. Use the array @returns This functions return true (1) if the colour is set. */ -WOOTINGRGBCONTROL_API bool wooting_rgb_direct_set_key(uint8_t row, uint8_t column, uint8_t red, uint8_t green, uint8_t blue); +WOOTINGRGBSDK_API bool wooting_rgb_direct_set_key(uint8_t row, uint8_t column, uint8_t red, uint8_t green, uint8_t blue); /** @brief Directly reset 1 key on the keyboard to the original color. @@ -82,7 +82,7 @@ Use this function for simple applifications, like a notification. Use the array @returns This functions return true (1) if the colour is reset. */ -WOOTINGRGBCONTROL_API bool wooting_rgb_direct_reset_key(uint8_t row, uint8_t column); +WOOTINGRGBSDK_API bool wooting_rgb_direct_reset_key(uint8_t row, uint8_t column); /** @brief Send the colors from the color array to the keyboard. @@ -93,7 +93,7 @@ This function will send the changes made with the wooting_rgb_array_**_** functi @returns This functions return true (1) if the colours are updated. */ -WOOTINGRGBCONTROL_API bool wooting_rgb_array_update_keyboard(void); +WOOTINGRGBSDK_API bool wooting_rgb_array_update_keyboard(void); /** @brief Change the auto update flag for the wooting_rgb_array_**_** functions. @@ -107,7 +107,7 @@ Standard is set to false. @returns None. */ -WOOTINGRGBCONTROL_API void wooting_rgb_array_auto_update(bool auto_update); +WOOTINGRGBSDK_API void wooting_rgb_array_auto_update(bool auto_update); /** @brief Set a single color in the colour array. @@ -125,7 +125,7 @@ programming language. @returns This functions return true (1) if the colours are changed (optional: updated). */ -WOOTINGRGBCONTROL_API bool wooting_rgb_array_set_single(uint8_t row, uint8_t column, uint8_t red, uint8_t green, uint8_t blue); +WOOTINGRGBSDK_API bool wooting_rgb_array_set_single(uint8_t row, uint8_t column, uint8_t red, uint8_t green, uint8_t blue); /** @brief Set a full colour array. @@ -141,4 +141,4 @@ If you use a non-C language it is recommended to use the wooting_rgb_array_set_s @returns This functions return true (1) if the colours are changed (optional: updated). */ -WOOTINGRGBCONTROL_API bool wooting_rgb_array_set_full(const uint8_t *colors_buffer); +WOOTINGRGBSDK_API bool wooting_rgb_array_set_full(const uint8_t *colors_buffer); diff --git a/windows/wooting-rgb-control.sln b/windows/wooting-rgb-sdk.sln similarity index 81% rename from windows/wooting-rgb-control.sln rename to windows/wooting-rgb-sdk.sln index 2f3006f..78619d1 100644 --- a/windows/wooting-rgb-control.sln +++ b/windows/wooting-rgb-sdk.sln @@ -1,9 +1,9 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 +# Visual Studio 15 +VisualStudioVersion = 15.0.27703.2026 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wooting-rgb-control", "wooting-rgb-control.vcxproj", "{6C6DB7E9-2FAC-4D27-A2B4-1BFA6FC7CF0A}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wooting-rgb-sdk", "wooting-rgb-sdk.vcxproj", "{6C6DB7E9-2FAC-4D27-A2B4-1BFA6FC7CF0A}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -25,4 +25,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4A9128A5-5BAB-460B-BA99-B60E0F69CF77} + EndGlobalSection EndGlobal diff --git a/windows/wooting-rgb-control.vcxproj b/windows/wooting-rgb-sdk.vcxproj similarity index 94% rename from windows/wooting-rgb-control.vcxproj rename to windows/wooting-rgb-sdk.vcxproj index 652454e..752af69 100644 --- a/windows/wooting-rgb-control.vcxproj +++ b/windows/wooting-rgb-sdk.vcxproj @@ -23,6 +23,7 @@ Win32Proj wootingrgbcontrol 8.1 + wooting-rgb-sdk @@ -87,7 +88,7 @@ Level3 Disabled - WIN32;_DEBUG;_WINDOWS;_USRDLL;WOOTINGRGBCONTROL_EXPORTS;%(PreprocessorDefinitions) + WIN32;_DEBUG;_WINDOWS;_USRDLL;WOOTINGRGBSDK_EXPORTS;%(PreprocessorDefinitions) $(ProjectDir)..\hidapi\hidapi;%(AdditionalIncludeDirectories) @@ -102,7 +103,7 @@ Level3 Disabled - _DEBUG;_WINDOWS;_USRDLL;WOOTINGRGBCONTROL_EXPORTS;%(PreprocessorDefinitions) + _DEBUG;_WINDOWS;_USRDLL;WOOTINGRGBSDK_EXPORTS;%(PreprocessorDefinitions) $(ProjectDir)..\hidapi\hidapi;%(AdditionalIncludeDirectories) @@ -119,7 +120,7 @@ MaxSpeed true true - WIN32;NDEBUG;_WINDOWS;_USRDLL;WOOTINGRGBCONTROL_EXPORTS;%(PreprocessorDefinitions) + WIN32;NDEBUG;_WINDOWS;_USRDLL;WOOTINGRGBSDK_EXPORTS;%(PreprocessorDefinitions) $(ProjectDir)..\hidapi\hidapi;%(AdditionalIncludeDirectories) @@ -138,7 +139,7 @@ MaxSpeed true true - NDEBUG;_WINDOWS;_USRDLL;WOOTINGRGBCONTROL_EXPORTS;%(PreprocessorDefinitions) + NDEBUG;_WINDOWS;_USRDLL;WOOTINGRGBSDK_EXPORTS;%(PreprocessorDefinitions) $(ProjectDir)..\hidapi\hidapi;%(AdditionalIncludeDirectories) @@ -151,12 +152,12 @@ - + - +