MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / DeviceToTypeString

Function DeviceToTypeString

src/db/plugins/simple/DirectorySave.cxx:31–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#define DIRECTORY_END "end: "
30
31[[gnu::const]]
32static const char *
33DeviceToTypeString(unsigned device) noexcept
34{
35 switch (device) {
36 case DEVICE_INARCHIVE:
37 return "archive";
38
39 case DEVICE_CONTAINER:
40 return "container";
41
42 case DEVICE_PLAYLIST:
43 return "playlist";
44
45 default:
46 return nullptr;
47 }
48}
49
50[[gnu::pure]]
51static unsigned

Callers 1

directory_saveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected