/* SPDX-FileCopyrightText: 2020 David Redondo SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #ifndef FREEBSDBACKEND_H #define FREEBSDBACKEND_H #include "backend.h" #include #include // can't forward declare typedefed kvm_t namespace KSysGuard { class SensorProperty; } class FreeBsdMemoryBackend : public MemoryBackend { public: FreeBsdMemoryBackend(KSysGuard::SensorContainer *container); void update() override; private: void makeSensors() override; unsigned long long pagesToBytes(uint32_t pages); unsigned int m_pageSize; kvm_t *m_kd; QList m_sysctlSensors; }; #endif