diff 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
line wrap: on
line diff
--- a/dep/animia/include/animia.h	Fri Nov 10 13:52:47 2023 -0500
+++ b/dep/animia/include/animia.h	Sun Nov 12 04:53:19 2023 -0500
@@ -3,10 +3,31 @@
 
 #include "animia/media.h"
 #include "animia/player.h"
+#include "animia/util.h"
 
 namespace animia {
 
+/* pid_t should be DWORD on windows, and defined by the system
+   anywhere else */
+struct Process {
+	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 {
+	Player player;
+	Process process;
+	//Window window;
+	std::vector<Media> media;
+};
+
+bool GetResults(const std::vector<Player>& players, std::vector<Result>& results);
 
 } // namespace Animia