1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

API: added /sdrangel/features (GET) to get the list of available feature plugins

This commit is contained in:
f4exb
2021-08-29 00:48:35 +02:00
parent 0ec7ec414d
commit 8d68fa5231
17 changed files with 1512 additions and 2 deletions
+16
View File
@@ -34,6 +34,7 @@ namespace SWGSDRangel
class SWGInstanceConfigResponse;
class SWGInstanceDevicesResponse;
class SWGInstanceChannelsResponse;
class SWGInstanceFeaturesResponse;
class SWGPreferences;
class SWGLoggingInfo;
class SWGAudioDevices;
@@ -214,6 +215,20 @@ public:
return 501;
}
/**
* Handler of /sdrangel/features (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
* returns the Http status code (default 501: not implemented)
*/
virtual int instanceFeatures(
SWGSDRangel::SWGInstanceFeaturesResponse& response,
SWGSDRangel::SWGErrorResponse& error)
{
(void) response;
error.init();
*error.getMessage() = QString("Function not implemented");
return 501;
}
/**
* Handler of /sdrangel/logging (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
* returns the Http status code (default 501: not implemented)
@@ -1357,6 +1372,7 @@ public:
static QString instanceConfigURL;
static QString instanceDevicesURL;
static QString instanceChannelsURL;
static QString instanceFeaturesURL;
static QString instanceLoggingURL;
static QString instanceAudioURL;
static QString instanceAudioInputParametersURL;