258
+ − 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_