Mercurial > libanimone
view include/animone/media.h @ 30:a76e55e098d1
util: rewrite functions in C-ish
there are C++ bindings still put in place. the code should be valid
C, except for the use of <regex>, which ought to go anyway. eventually
I'll actually *test* this stuff aside from the TrimRight crap
author | Paper <paper@tflc.us> |
---|---|
date | Sun, 09 Feb 2025 23:18:57 -0500 |
parents | 60ded877339b |
children |
line wrap: on
line source
#ifndef ANIMONE_ANIMONE_MEDIA_H_ #define ANIMONE_ANIMONE_MEDIA_H_ #include "animone/types.h" #include <chrono> #include <functional> #include <string> #include <vector> namespace animone { // XXX where is this used? using media_time_t = std::chrono::milliseconds; enum class MediaInfoType { Unknown, File, Tab, Title, Url }; struct ANIMONE_API MediaInfo { MediaInfoType type = MediaInfoType::Unknown; std::string value; }; struct ANIMONE_API Media { std::vector<MediaInfo> information; }; } // namespace animone #endif // ANIMONE_ANIMONE_MEDIA_H_