MCPcopy Create free account
hub / github.com/Cpasjuste/pplay / getDeviceType

Method getDeviceType

src/io.cpp:228–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228Io::DeviceType Io::getDeviceType(const std::string &path) {
229
230 Io::DeviceType type = Io::DeviceType::Local;
231
232 if (c2d::Utility::startWith(path, "http://")) {
233 type = pplay::Io::DeviceType::Http;
234 } else if (c2d::Utility::startWith(path, "ftp://")) {
235 type = pplay::Io::DeviceType::Ftp;
236 } else if (c2d::Utility::startWith(path, "smb://")) {
237 type = pplay::Io::DeviceType::Smb;
238 }
239
240 return type;
241}
242
243Io::~Io() {
244 delete (browser);

Callers 3

find_mediasFunction · 0.80
getDirMethod · 0.80
exitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected