set plugin info
This commit is contained in:
17
src/plugin.c
17
src/plugin.c
@@ -1,9 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* TeamSpeak 3 demo plugin
|
* TeamSpeak 3 WIFI LED plugin
|
||||||
*
|
*
|
||||||
* Copyright (c) TeamSpeak Systems GmbH
|
* Copyright (c) TeamSpeak Systems GmbH
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32)
|
#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32)
|
||||||
#pragma warning (disable : 4100) /* Disable Unreferenced parameter warning */
|
#pragma warning (disable : 4100) /* Disable Unreferenced parameter warning */
|
||||||
#include <Windows.h>
|
#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. */
|
/* 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 */
|
static char* result = NULL; /* Static variable so it's allocated only once */
|
||||||
if(!result) {
|
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 */
|
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;
|
return result;
|
||||||
#else
|
#else
|
||||||
return "Test Plugin";
|
return "WIFILED";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Plugin version */
|
/* Plugin version */
|
||||||
const char* ts3plugin_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. */
|
/* 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 */
|
/* Plugin author */
|
||||||
const char* ts3plugin_author() {
|
const char* ts3plugin_author() {
|
||||||
/* If you want to use wchar_t, see ts3plugin_name() on how to use */
|
/* If you want to use wchar_t, see ts3plugin_name() on how to use */
|
||||||
return "TeamSpeak Systems GmbH";
|
return "Rogosoftware";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Plugin description */
|
/* Plugin description */
|
||||||
const char* ts3plugin_description() {
|
const char* ts3plugin_description() {
|
||||||
/* If you want to use wchar_t, see ts3plugin_name() on how to use */
|
/* 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 */
|
/* Set TeamSpeak 3 callback functions */
|
||||||
@@ -185,7 +184,7 @@ void ts3plugin_registerPluginID(const char* id) {
|
|||||||
|
|
||||||
/* Plugin command keyword. Return NULL or "" if not used. */
|
/* Plugin command keyword. Return NULL or "" if not used. */
|
||||||
const char* ts3plugin_commandKeyword() {
|
const char* ts3plugin_commandKeyword() {
|
||||||
return "test";
|
return "LED";
|
||||||
}
|
}
|
||||||
|
|
||||||
static void print_and_free_bookmarks_list(struct PluginBookmarkList* list)
|
static void print_and_free_bookmarks_list(struct PluginBookmarkList* list)
|
||||||
|
|||||||
@@ -138,6 +138,7 @@
|
|||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
<AdditionalIncludeDirectories>..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<LanguageStandard>stdcpp14</LanguageStandard>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
|
|||||||
Reference in New Issue
Block a user