Skip to content
Snippets Groups Projects
Commit c7f52c74 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

win32: DeviceLister: Move local devices listing in a dedicated function

We'll soon have another variant of device listing for network devices,
this will clarify the intent.
refs #439
parent 9994f1c9
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ namespace medialibrary ...@@ -43,7 +43,7 @@ namespace medialibrary
namespace fs namespace fs
{ {
std::vector<CommonDeviceLister::Device> DeviceLister::devices() const std::vector<CommonDeviceLister::Device> DeviceLister::localDevices() const
{ {
wchar_t volumeName[MAX_PATH]; wchar_t volumeName[MAX_PATH];
auto handle = FindFirstVolume( volumeName, sizeof(volumeName)/sizeof(volumeName[0]) ); auto handle = FindFirstVolume( volumeName, sizeof(volumeName)/sizeof(volumeName[0]) );
...@@ -97,6 +97,12 @@ std::vector<CommonDeviceLister::Device> DeviceLister::devices() const ...@@ -97,6 +97,12 @@ std::vector<CommonDeviceLister::Device> DeviceLister::devices() const
return res; return res;
} }
std::vector<CommonDeviceLister::Device> DeviceLister::devices() const
{
auto devs = localDevices();
return devs;
}
} }
} }
......
...@@ -37,6 +37,9 @@ class DeviceLister : public CommonDeviceLister ...@@ -37,6 +37,9 @@ class DeviceLister : public CommonDeviceLister
{ {
public: public:
virtual std::vector<Device> devices() const override; virtual std::vector<Device> devices() const override;
private:
std::vector<Device> localDevices() const;
}; };
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment