1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 16:34:45 -04:00

Plugins device enumeration optimization: factorization of common code for Rx/Tx devices

This commit is contained in:
f4exb
2019-09-17 19:54:13 +02:00
parent e9bbf0b266
commit ee3313dc82
34 changed files with 341 additions and 550 deletions
+2
View File
@@ -20,6 +20,7 @@
#include "libhackrf/hackrf.h"
#include "plugin/plugininterface.h"
#include "export.h"
class DEVICES_API DeviceHackRF
@@ -28,6 +29,7 @@ public:
static DeviceHackRF& instance();
static hackrf_device *open_hackrf(int sequence);
static hackrf_device *open_hackrf(const char * const serial);
static void enumOriginDevices(const QString& hardwareId, PluginInterface::OriginDevices& originDevices);
protected:
DeviceHackRF();
DeviceHackRF(const DeviceHackRF&) {}