Mercurial > minori
comparison include/track/media.h @ 135:0a458cb26ff4
filesystem: move to using std::filesystem after C++17 switch
old compilers will croak compiling this, but it's not like we
*really* need to support them (they probably croak compiling
Qt as well)
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Thu, 09 Nov 2023 18:01:56 -0500 |
| parents | ab191e28e69d |
| children | 28842a8d0c6b |
comparison
equal
deleted
inserted
replaced
| 134:54c9d36207db | 135:0a458cb26ff4 |
|---|---|
| 4 #include <unordered_map> | 4 #include <unordered_map> |
| 5 | 5 |
| 6 namespace Track { | 6 namespace Track { |
| 7 namespace Media { | 7 namespace Media { |
| 8 | 8 |
| 9 Filesystem::Path GetCurrentPlaying(); | 9 std::filesystem::path GetCurrentPlaying(); |
| 10 std::unordered_map<std::string, std::string> GetFileElements(std::string basename); | 10 std::unordered_map<std::string, std::string> GetFileElements(const std::string& basename); |
| 11 std::unordered_map<std::string, std::string> GetFileElements(Filesystem::Path path); | 11 std::unordered_map<std::string, std::string> GetFileElements(const std::filesystem::path& path); |
| 12 | 12 |
| 13 } // namespace Media | 13 } // namespace Media |
| 14 } // namespace Track | 14 } // namespace Track |
| 15 | 15 |
| 16 #endif // __track__media_h | 16 #endif // __track__media_h |
