Files
archived-ext-hwinfo/include/hwinfo/utils/filesystem.h
Amin Yahyaabadi ef8fce2d91 feat: make hwinfo features modular (#98)
* 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
2024-07-24 08:41:46 +02:00

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