Mercurial > minori
diff dep/animone/include/animone.h @ 301:b1f625b0227c
*: convert all files CRLF -> LF
some files were in DOS format, others were in unix. now everything
(that at least is under our control) should all be the same format
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 13 May 2024 15:04:51 -0400 |
parents | 862d0d8619f6 |
children | a7d4e5107531 |
line wrap: on
line diff
--- a/dep/animone/include/animone.h Mon May 13 14:56:37 2024 -0400 +++ b/dep/animone/include/animone.h Mon May 13 15:04:51 2024 -0400 @@ -1,37 +1,37 @@ -#ifndef ANIMONE_ANIMONE_H_ -#define ANIMONE_ANIMONE_H_ - -#include "animone/media.h" -#include "animone/player.h" -#include "animone/types.h" - -namespace animone { - -enum class ResultType { - Process, - Window -}; - -struct Process { - internal::pid_t pid = 0; /* pid_t == DWORD on Windows, from <sys/types.h> everywhere else */ - 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; /* has nothing under process mode */ - std::vector<Media> media; -}; - -bool GetResults(const std::vector<Player>& players, std::vector<Result>& results); - -} // namespace animone - -#endif // ANIMONE_ANIMONE_H_ +#ifndef ANIMONE_ANIMONE_H_ +#define ANIMONE_ANIMONE_H_ + +#include "animone/media.h" +#include "animone/player.h" +#include "animone/types.h" + +namespace animone { + +enum class ResultType { + Process, + Window +}; + +struct Process { + internal::pid_t pid = 0; /* pid_t == DWORD on Windows, from <sys/types.h> everywhere else */ + 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; /* has nothing under process mode */ + std::vector<Media> media; +}; + +bool GetResults(const std::vector<Player>& players, std::vector<Result>& results); + +} // namespace animone + +#endif // ANIMONE_ANIMONE_H_