Mercurial > minori
view dep/animia/include/animia.h @ 179:9c4645100fec
osx: clean up includes, we do not need cocoa
what we *do* need is the very basics that animia already depends on anyway.
these are basically guaranteed to be on any macos system, making it fairly portable
now... I haven't tested this :) I don't have a macos machine right now...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 04 Dec 2023 12:03:36 -0500 |
parents | cdf79282d647 |
children |
line wrap: on
line source
#ifndef __animia__animia_h #define __animia__animia_h #include "animia/media.h" #include "animia/player.h" #include "animia/types.h" namespace animia { enum class ResultType { Process, Window }; struct Process { internal::pid_t pid = 0; std::string name; }; struct Window { unsigned int id = 0; std::string class_name; std::string text; // title bar text }; struct Result { ResultType type; Player player; Process process; // unused when using window_title. it's dumb, blame X11 Window window; // unused with file descriptors std::vector<Media> media; }; bool GetResults(const std::vector<Player>& players, std::vector<Result>& results); } // namespace animia #endif // __animia__animia_h