mirror of
https://github.com/shadps4-emu/ext-hwinfo.git
synced 2026-01-31 00:55:22 +01:00
* feat: make hwinfo features modular * fix: use the latest available C++ standard * fix!: deprecate NO_OCL in favour of HWINFO_GPU_OPENCL * doc: add docs for the modular targets/options * fix: add preprocessor feature guards * ci: test build of all features in ci * fix: detect C++ standard after enabling C++ language
25 lines
531 B
C++
25 lines
531 B
C++
#pragma once
|
|
|
|
#include <hwinfo/cpu.h>
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace hwinfo {
|
|
namespace filesystem {
|
|
|
|
bool exists(const std::string& path);
|
|
|
|
std::vector<std::string> getDirectoryEntries(const std::string& path);
|
|
|
|
#if defined(HWINFO_UNIX) || defined(HWINFO_APPLE)
|
|
int64_t get_specs_by_file_path(const std::string& path);
|
|
#endif // HWINFO_UNIX || HWINFO_APPLE
|
|
|
|
#if defined(HWINFO_UNIX) && defined(HWINFO_CPU)
|
|
Jiffies get_jiffies(int index);
|
|
#endif // HWINFO_UNIX
|
|
|
|
} // namespace filesystem
|
|
} // namespace hwinfo
|