aboutsummaryrefslogtreecommitdiffstats
path: root/core/helpers.h
blob: 64fc67fb8fc4df68278cf5fbee5fa9bf45d7766f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef CORE_HELPERS_H
#define CORE_HELPERS_H

#include <utility>
#include <string>
#include <vector>


struct PathNamePair {
    std::string path, fname;

    PathNamePair() = default;
    template<typename T, typename U>
    PathNamePair(T&& path_, U&& fname_)
        : path{std::forward<T>(path_)}, fname{std::forward<U>(fname_)}
    { }
};
const PathNamePair &GetProcBinary();

extern int RTPrioLevel;
extern bool AllowRTTimeLimit;
void SetRTPriority();

std::vector<std::string> SearchDataFiles(const char *match, const char *subdir);

#endif /* CORE_HELPERS_H */