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

Function IsSortSupported

src/db/plugins/ProxyDatabasePlugin.cxx:817–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815}
816
817[[gnu::pure]]
818static bool
819IsSortSupported(TagType tag_type) noexcept
820{
821 if (tag_type == TagType(SORT_TAG_LAST_MODIFIED)) {
822 return true;
823 }
824
825#if LIBMPDCLIENT_CHECK_VERSION(2,21,0)
826 if (tag_type == TagType(SORT_TAG_ADDED)) {
827 return true;
828 }
829#endif
830
831 return Convert(tag_type) != MPD_TAG_COUNT;
832}
833
834[[gnu::pure]]
835static DatabaseSelection

Callers 1

CheckSelectionFunction · 0.85

Calls 1

ConvertFunction · 0.85

Tested by

no test coverage detected