Mercurial > libanimone
annotate include/animone/util/osx.h @ 4:cce3a81b03bf
dep/animone: make osx code a bit less hacky
it would be nice if macos actually provided a real API for getting
window titles (outside of the accessibility api). the accessibility
API is a real mess to work with; the user has to give permission to
access it under newer versions.
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Fri, 12 Apr 2024 05:21:45 -0400 |
| parents | a76fa32bdc92 |
| children |
| rev | line source |
|---|---|
| 0 | 1 #ifndef ANIMONE_ANIMONE_UTIL_OSX_H_ |
| 2 #define ANIMONE_ANIMONE_UTIL_OSX_H_ | |
| 3 | |
| 4 #include "animone/types.h" | |
| 5 #include <cstdint> | |
| 6 #include <string> | |
|
4
cce3a81b03bf
dep/animone: make osx code a bit less hacky
Paper <paper@paper.us.eu.org>
parents:
0
diff
changeset
|
7 #include <memory> |
| 0 | 8 |
| 9 #include <CoreFoundation/CoreFoundation.h> | |
| 10 | |
| 11 namespace animone::internal::osx::util { | |
| 12 | |
| 13 bool GetProcessName(pid_t pid, std::string& result); | |
| 14 | |
| 15 } // namespace animone::internal::osx::util | |
| 16 | |
| 17 #endif // ANIMONE_ANIMONE_UTIL_OSX_H_ |
