Skip to content

Commit

Permalink
cleanup headers
Browse files Browse the repository at this point in the history
  • Loading branch information
vmatare committed Nov 19, 2022
1 parent 3811265 commit 92e65dd
Show file tree
Hide file tree
Showing 11 changed files with 50 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef THINKFAN_CONFIG_H_
#define THINKFAN_CONFIG_H_

#include "error.h"
#include "temperature_state.h"

#include <string>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions src/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* ******************************************************************/

#include "driver.h"
#include "message.h"

namespace thinkfan {

Expand Down
1 change: 1 addition & 0 deletions src/error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* ******************************************************************/

#include "error.h"
#include "message.h"

#include <features.h>
#if defined(__GLIBC__)
Expand Down
1 change: 0 additions & 1 deletion src/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <exception>
#include <string>

#include "message.h"
#include "thinkfan.h"

#ifdef USE_YAML
Expand Down
2 changes: 1 addition & 1 deletion src/hwmon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* ******************************************************************/

#include "hwmon.h"
#include "wtf_ptr.h"
#include "message.h"
#include "error.h"

#include <fnmatch.h>
Expand Down
1 change: 0 additions & 1 deletion src/hwmon.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* ******************************************************************/

#include "thinkfan.h"
#include "wtf_ptr.h"

#include <dirent.h>

Expand Down
23 changes: 23 additions & 0 deletions src/libsensors.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
/********************************************************************
* libsensors.cpp: State management for libsensors
* (C) 2022, Victor Mataré
* 2021, Koutheir Attouchi
*
* this file is part of thinkfan. See thinkfan.c for further information.
*
* thinkfan is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* thinkfan is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with thinkfan. If not, see <http://www.gnu.org/licenses/>.
*
* ******************************************************************/

#include "libsensors.h"
#include "error.h"
#include "sensors.h"
#include "message.h"

namespace thinkfan {

Expand Down
22 changes: 21 additions & 1 deletion src/libsensors.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
/********************************************************************
* libsensors.h: State management for libsensors
* (C) 2022, Victor Mataré
*
* this file is part of thinkfan. See thinkfan.c for further information.
*
* thinkfan is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* thinkfan is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with thinkfan. If not, see <http://www.gnu.org/licenses/>.
*
* ******************************************************************/

#pragma once

#include "thinkfan.h"
#include "temperature_state.h"

#ifdef USE_LM_SENSORS
#include <sensors/sensors.h>
Expand Down
1 change: 1 addition & 0 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "error.h"
#include "parser.h"
#include "config.h"
#include "message.h"
#include <memory>

namespace thinkfan {
Expand Down
1 change: 0 additions & 1 deletion src/sensors.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/********************************************************************
* drivers.cpp: Interface to the kernel drivers.
* (C) 2015, Victor Mataré
* 2021, Koutheir Attouchi
*
* this file is part of thinkfan. See thinkfan.c for further information.
*
Expand Down
1 change: 1 addition & 0 deletions src/sensors.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "driver.h"
#include "hwmon.h"
#include "libsensors.h"
#include "temperature_state.h"

#ifdef USE_ATASMART
#include <atasmart.h>
Expand Down

0 comments on commit 92e65dd

Please sign in to comment.