Mercurial > minori
view include/track/media.h @ 150:ffa535b6d630
*: avoid usage of std::[pair,tuple]
https://arne-mertz.de/2017/03/smelly-pair-tuple/
it's better to use real structures and such where variables are easily known...
also apparently using [] on structs is actually valid? I had no idea.
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 14 Nov 2023 16:27:33 -0500 |
parents | 28842a8d0c6b |
children | d43d68408d3c |
line wrap: on
line source
#ifndef __track__media_h #define __track__media_h #include "core/filesystem.h" #include <unordered_map> #include <string> #include <vector> namespace Track { namespace Media { bool GetCurrentlyPlaying(std::vector<std::string>& vec); std::unordered_map<std::string, std::string> GetFileElements(const std::string& basename); //std::unordered_map<std::string, std::string> GetFileElements(const std::filesystem::path& path); } // namespace Media } // namespace Track #endif // __track__media_h