Add EngineDevice class

This commit is contained in:
Jonas Kvinge
2023-06-01 19:31:19 +02:00
parent a1dbbba1a1
commit 315073f9a7
20 changed files with 170 additions and 111 deletions

View File

@@ -28,6 +28,7 @@
#include <pulse/mainloop.h>
#include "devicefinder.h"
#include "enginedevice.h"
class PulseDeviceFinder : public DeviceFinder {
public:
@@ -35,14 +36,14 @@ class PulseDeviceFinder : public DeviceFinder {
~PulseDeviceFinder() override;
bool Initialize() override;
DeviceList ListDevices() override;
EngineDeviceList ListDevices() override;
private:
struct ListDevicesState {
ListDevicesState() : finished(false) {}
bool finished;
DeviceList devices;
EngineDeviceList devices;
};
bool Reconnect();