set plugin info

This commit is contained in:
2020-04-04 17:51:01 +02:00
parent f36bfab5aa
commit 98987eb4d2
2 changed files with 9 additions and 9 deletions

View File

@@ -1,9 +1,8 @@
/*
* TeamSpeak 3 demo plugin
* TeamSpeak 3 WIFI LED plugin
*
* Copyright (c) TeamSpeak Systems GmbH
*/
#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32)
#pragma warning (disable : 4100) /* Disable Unreferenced parameter warning */
#include <Windows.h>
@@ -65,20 +64,20 @@ const char* ts3plugin_name() {
/* TeamSpeak expects UTF-8 encoded characters. Following demonstrates a possibility how to convert UTF-16 wchar_t into UTF-8. */
static char* result = NULL; /* Static variable so it's allocated only once */
if(!result) {
const wchar_t* name = L"Test Plugin";
const wchar_t* name = L"WIFILED";
if(wcharToUtf8(name, &result) == -1) { /* Convert name into UTF-8 encoded result */
result = "Test Plugin"; /* Conversion failed, fallback here */
result = "WIFILED"; /* Conversion failed, fallback here */
}
}
return result;
#else
return "Test Plugin";
return "WIFILED";
#endif
}
/* Plugin version */
const char* ts3plugin_version() {
return "1.2";
return "0.1";
}
/* Plugin API version. Must be the same as the clients API major version, else the plugin fails to load. */
@@ -89,13 +88,13 @@ int ts3plugin_apiVersion() {
/* Plugin author */
const char* ts3plugin_author() {
/* If you want to use wchar_t, see ts3plugin_name() on how to use */
return "TeamSpeak Systems GmbH";
return "Rogosoftware";
}
/* Plugin description */
const char* ts3plugin_description() {
/* If you want to use wchar_t, see ts3plugin_name() on how to use */
return "This plugin demonstrates the TeamSpeak 3 client plugin architecture.";
return "This plugin sends HTTP Requests to an WLED Server to light LEDs.";
}
/* Set TeamSpeak 3 callback functions */
@@ -185,7 +184,7 @@ void ts3plugin_registerPluginID(const char* id) {
/* Plugin command keyword. Return NULL or "" if not used. */
const char* ts3plugin_commandKeyword() {
return "test";
return "LED";
}
static void print_and_free_bookmarks_list(struct PluginBookmarkList* list)

View File

@@ -138,6 +138,7 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<AdditionalIncludeDirectories>..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<LanguageStandard>stdcpp14</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>