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

Function protocol_features_print

src/client/ProtocolFeature.cxx:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45constinit const std::array<const char *, PF_NUM_OF_ITEM_TYPES> protocol_feature_names = MakeProtocolFeatureNames();
46
47void
48protocol_features_print(Client &client, Response &r) noexcept
49{
50 const auto protocol_feature = client.GetProtocolFeatures();
51 for (unsigned i = 0; i < PF_NUM_OF_ITEM_TYPES; i++)
52 if (protocol_feature.Test(ProtocolFeatureType(i)))
53 r.Fmt("feature: {}\n", protocol_feature_names[i]);
54}
55
56void
57protocol_features_print_all(Response &r) noexcept

Callers 1

handle_protocolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected