Mercurial > minori
comparison dep/animia/include/animia.h @ 146:d8a61e7e2a36
dep/animia: move fd stuff to a new fd.cc, don't force the user
to include windows.h
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Mon, 13 Nov 2023 13:52:58 -0500 |
| parents | 478f3b366199 |
| children | 8700806c2cc2 |
comparison
equal
deleted
inserted
replaced
| 145:8e9b71970bda | 146:d8a61e7e2a36 |
|---|---|
| 5 #include "animia/player.h" | 5 #include "animia/player.h" |
| 6 #include "animia/types.h" | 6 #include "animia/types.h" |
| 7 | 7 |
| 8 namespace animia { | 8 namespace animia { |
| 9 | 9 |
| 10 /* pid_t should be DWORD on windows, and defined by the system | |
| 11 anywhere else */ | |
| 12 struct Process { | 10 struct Process { |
| 13 internal::pid_t pid = 0; | 11 internal::pid_t pid = 0; |
| 14 std::string name; | 12 std::string name; |
| 15 }; | 13 }; |
| 16 | 14 |
| 21 }; | 19 }; |
| 22 | 20 |
| 23 struct Result { | 21 struct Result { |
| 24 Player player; | 22 Player player; |
| 25 Process process; | 23 Process process; |
| 26 //Window window; | 24 Window window; // unused with file descriptors |
| 27 std::vector<Media> media; | 25 std::vector<Media> media; |
| 28 }; | 26 }; |
| 29 | 27 |
| 30 bool GetResults(const std::vector<Player>& players, std::vector<Result>& results); | 28 bool GetResults(const std::vector<Player>& players, std::vector<Result>& results); |
| 31 | 29 |
