helpers.h 602 B

1234567891011121314151617181920212223242526
  1. #ifndef CORE_HELPERS_H
  2. #define CORE_HELPERS_H
  3. #include <string>
  4. #include <string_view>
  5. #include <vector>
  6. struct PathNamePair {
  7. std::string path, fname;
  8. };
  9. const PathNamePair &GetProcBinary();
  10. /* Mixing thread priority level */
  11. inline int RTPrioLevel{1};
  12. /* Allow reducing the process's RTTime limit for RTKit. */
  13. inline bool AllowRTTimeLimit{true};
  14. void SetRTPriority();
  15. auto SearchDataFiles(const std::string_view ext) -> std::vector<std::string>;
  16. auto SearchDataFiles(const std::string_view ext, const std::string_view subdir)
  17. -> std::vector<std::string>;
  18. #endif /* CORE_HELPERS_H */