Mercurial > libanimone
view include/animone/media.h @ 25:60ded877339b
dep/animone: fix tons of issues
for example, the window ID stuff was just... completely wrong. since we're
supporting multiple different window systems, it *has* to be a union rather
than just a single integer type. HWND is also not a DWORD, it's a pointer(!),
so now it's stored as a std::uintptr_t.
(this probably breaks things)
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 20 Jun 2024 03:03:05 -0400 |
parents | 973734ebd2be |
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_