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

Web API: implemented /sdrange/devices: Get a list of sampling devices that can be used to take part in a device set

This commit is contained in:
f4exb
2017-11-22 18:57:35 +01:00
parent 09dc5913c7
commit 2ac9a82b02
9 changed files with 156 additions and 39 deletions
+12
View File
@@ -24,6 +24,7 @@
namespace Swagger
{
class SWGInstanceSummaryResponse;
class SWGInstanceDevicesResponse;
class SWGErrorResponse;
}
@@ -41,7 +42,18 @@ public:
Swagger::SWGErrorResponse& error __attribute__((unused)))
{ return 501; }
/**
* Handler of /sdrangel/devices (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceDevices
* returns the Http status code (default 501: not implemented)
*/
virtual int instanceDevices(
bool tx __attribute__((unused)),
Swagger::SWGInstanceDevicesResponse& response __attribute__((unused)),
Swagger::SWGErrorResponse& error __attribute__((unused)))
{ return 501; }
static QString instanceSummaryURL;
static QString instanceDevicesURL;
};