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:
@@ -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&) {}
|
||||
|
||||
Reference in New Issue
Block a user