Mercurial > minori
comparison dep/animia/include/animia.h @ 138:28842a8d0c6b
dep/animia: huge refactor (again...)
but this time, it actually compiles! and it WORKS! (on win32... not sure about
other platforms...)
configuring players is still not supported: at some point I'll prune something
up...
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 12 Nov 2023 04:53:19 -0500 |
| parents | 69db40272acd |
| children | 478f3b366199 |
comparison
equal
deleted
inserted
replaced
| 137:69db40272acd | 138:28842a8d0c6b |
|---|---|
| 1 #ifndef __animia__animia_h | 1 #ifndef __animia__animia_h |
| 2 #define __animia__animia_h | 2 #define __animia__animia_h |
| 3 | 3 |
| 4 #include "animia/media.h" | 4 #include "animia/media.h" |
| 5 #include "animia/player.h" | 5 #include "animia/player.h" |
| 6 #include "animia/util.h" | |
| 6 | 7 |
| 7 namespace animia { | 8 namespace animia { |
| 8 | 9 |
| 10 /* pid_t should be DWORD on windows, and defined by the system | |
| 11 anywhere else */ | |
| 12 struct Process { | |
| 13 pid_t pid = 0; | |
| 14 std::string name; | |
| 15 }; | |
| 9 | 16 |
| 17 struct Window { | |
| 18 unsigned int id = 0; | |
| 19 std::string class_name; | |
| 20 std::string text; // title bar text | |
| 21 }; | |
| 22 | |
| 23 struct Result { | |
| 24 Player player; | |
| 25 Process process; | |
| 26 //Window window; | |
| 27 std::vector<Media> media; | |
| 28 }; | |
| 29 | |
| 30 bool GetResults(const std::vector<Player>& players, std::vector<Result>& results); | |
| 10 | 31 |
| 11 } // namespace Animia | 32 } // namespace Animia |
| 12 | 33 |
| 13 #endif // __animia__animia_h | 34 #endif // __animia__animia_h |
