comparison dep/animone/include/animone.h @ 258:862d0d8619f6

*: HUUUGE changes animia has been renamed to animone, so instead of thinking of a health condition, you think of a beautiful flower :) I've also edited some of the code for animone, but I have no idea if it even works or not because I don't have a mac or windows machine lying around. whoops! ... anyway, all of the changes divergent from Anisthesia are now licensed under BSD. it's possible that I could even rewrite most of the code to where I don't even have to keep the MIT license, but that's thinking too far into the future I've been slacking off on implementing the anime seasons page, mostly out of laziness. I think I'd have to create another db file specifically for the seasons anyway, this code is being pushed *primarily* because the hard drive it's on is failing! yay :)
author Paper <paper@paper.us.eu.org>
date Mon, 01 Apr 2024 02:43:44 -0400
parents
children b1f625b0227c
comparison
equal deleted inserted replaced
257:699a20c57dc8 258:862d0d8619f6
1 #ifndef ANIMONE_ANIMONE_H_
2 #define ANIMONE_ANIMONE_H_
3
4 #include "animone/media.h"
5 #include "animone/player.h"
6 #include "animone/types.h"
7
8 namespace animone {
9
10 enum class ResultType {
11 Process,
12 Window
13 };
14
15 struct Process {
16 internal::pid_t pid = 0; /* pid_t == DWORD on Windows, from <sys/types.h> everywhere else */
17 std::string name;
18 };
19
20 struct Window {
21 unsigned int id = 0;
22 std::string class_name;
23 std::string text; /* title bar text */
24 };
25
26 struct Result {
27 Player player;
28 Process process;
29 Window window; /* has nothing under process mode */
30 std::vector<Media> media;
31 };
32
33 bool GetResults(const std::vector<Player>& players, std::vector<Result>& results);
34
35 } // namespace animone
36
37 #endif // ANIMONE_ANIMONE_H_