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
28 lines
1.1 KiB
C++
28 lines
1.1 KiB
C++
// Copyright Leon Freist
|
|
// Author Leon Freist <freist@informatik.uni-freiburg.de>
|
|
|
|
#ifdef HWINFO_DISK
|
|
|
|
#include <hwinfo/disk.h>
|
|
|
|
namespace hwinfo {
|
|
|
|
// _____________________________________________________________________________________________________________________
|
|
const std::string& Disk::vendor() const { return _vendor; }
|
|
|
|
// _____________________________________________________________________________________________________________________
|
|
const std::string& Disk::model() const { return _model; }
|
|
|
|
// _____________________________________________________________________________________________________________________
|
|
const std::string& Disk::serialNumber() const { return _serialNumber; }
|
|
|
|
// _____________________________________________________________________________________________________________________
|
|
int64_t Disk::size_Bytes() const { return _size_Bytes; }
|
|
|
|
// _____________________________________________________________________________________________________________________
|
|
int Disk::id() const { return _id; }
|
|
|
|
} // namespace hwinfo
|
|
|
|
#endif // HWINFO_DISK
|