Skip to content

Commit

Permalink
Rename wooting-rgb-control to wooting-rgb-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen committed Jul 3, 2018
1 parent fddabd2 commit 746670e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/wooting-rgb-control.c → src/wooting-rgb-sdk.c
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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
Expand Down
24 changes: 12 additions & 12 deletions src/wooting-rgb-control.h → src/wooting-rgb-sdk.h
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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);
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -25,4 +25,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4A9128A5-5BAB-460B-BA99-B60E0F69CF77}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<Keyword>Win32Proj</Keyword>
<RootNamespace>wootingrgbcontrol</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
<ProjectName>wooting-rgb-sdk</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
Expand Down Expand Up @@ -87,7 +88,7 @@
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;WOOTINGRGBCONTROL_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;WOOTINGRGBSDK_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(ProjectDir)..\hidapi\hidapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
Expand All @@ -102,7 +103,7 @@
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;WOOTINGRGBCONTROL_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;WOOTINGRGBSDK_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(ProjectDir)..\hidapi\hidapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
Expand All @@ -119,7 +120,7 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;WOOTINGRGBCONTROL_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;WOOTINGRGBSDK_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(ProjectDir)..\hidapi\hidapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
Expand All @@ -138,7 +139,7 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;WOOTINGRGBCONTROL_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;WOOTINGRGBSDK_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(ProjectDir)..\hidapi\hidapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
Expand All @@ -151,12 +152,12 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="..\hidapi\hidapi\hidapi.h" />
<ClInclude Include="..\src\wooting-rgb-control.h" />
<ClInclude Include="..\src\wooting-rgb-sdk.h" />
<ClInclude Include="..\src\wooting-usb.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\hidapi\windows\hid.c" />
<ClCompile Include="..\src\wooting-rgb-control.c" />
<ClCompile Include="..\src\wooting-rgb-sdk.c" />
<ClCompile Include="..\src\wooting-usb.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down

0 comments on commit 746670e

Please sign in to comment.